This documentation is archived and is not being maintained.

Inserting a New Breakpoint from the Debug Menu

No matter which window you are using, you can insert a new breakpoint of any type by selecting New Breakpoint from the Debug menu.

To insert a new breakpoint

  1. On the Debug menu, click New Breakpoint.

    The New Breakpoint dialog box appears.

  2. Click the Function, File, Address, or Data tab, depending on the type of breakpoint you want to set. (Data breakpoints are available for native code only. You can set a data breakpoint on a global variable or a local variable in the top scope of the function.) For more information, see Breakpoints.
  3. Set the properties on the chosen tab.
  4. Click the Condition or Hit Count button, if you want to add either of those properties.
  5. Click OK.
    Note   If you switch tabs any time before clicking OK, the breakpoint will be set according to the settings on the last tab selected.
    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

Breakpoints | New Breakpoint Dialog Box

Show: