### Start Debugging a DLL from a Load Occurrence Breakpoint Dialog

You can set a breakpoint in a DLL that causes execution to stop when the DLL is first loaded by your application. The DLL is generally loaded by your application the first time a function contained within the DLL is called by another function within your application.This type of breakpoint is called a load occurrence breakpoint.

To set a load occurrence breakpoint, do the following:

1. From the Breakpoints menu of the Session Control or Source windows, or from the Set menu of the Breakpoints List window, choose Set load occurrence breakpoint.
2. In the Load Occurrence Breakpoint dialog, enter the name of the DLL you want to set the breakpoint in.
3. Click on OK to set the breakpoint and close the Load Occurrence Breakpoint dialog, or click on Set if you want to set more load occurrence breakpoints.

When you run your application, execution will stop when the DLL is first loaded.

Debug a DLL