Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Inserting a Function Breakpoint in a Source Window

To insert a function breakpoint

  1. In the source window, select the name of the function where you want to insert a breakpoint.
  2. 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.

  3. Edit the Line and Character settings if you want to place the breakpoint at another location in the function.
  4. 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.

See Also

Breakpoint Operations in a Source Window

Show:
© 2015 Microsoft