Inserting a Function Breakpoint in a Source Window
To insert a function breakpoint
- In the source window, select the name of the function where you want to insert a breakpoint.
- Select New Breakpoint from the shortcut menu.
The New Breakpoint dialog box appears with the Function tab enabled. The name of the function you selected appears in the Function box and the language the function is written in appears in the Language box. By default, the Line and Character columns are set to 1. If you accept these default values, the breakpoint will be set at the beginning of the function.
- Edit the Line and Character settings if you want to place the breakpoint at another location in the function.
- Click OK.
Caution Avoid setting breakpoints on system components when you are debugging mixed-mode (native and managed) code. Setting a breakpoint on a system component during mixed-mode debugging can cause the common language runtime to break and the debugger to hang. For more information, see Mixed-Mode Debugging.
Note In the Visual C++ 6.0 debugger, you needed to specify the names of the DLLs you wanted to debug (in the Additional DLLs dialog box). In the Visual Studio .NET debugger, you can set a breakpoint on a DLL that is not yet loaded. The Additional DLLs dialog box no longer exists.