Compartir a través de


How to: Edit a Breakpoint Location 

This feature is found in Visual C++ Express Edition and Visual Studio Professional, Enterprise, and Enterprise Architect Editions only.

In a source, Disassembly, or Call Stack window, breakpoints are displayed in the left margin as red symbols called glyphs. The glyph is also displayed in the Breakpoints window.

To edit a breakpoint

  1. In the Breakpoints window, right-click a breakpoint and choose Location from the shortcut menu.

    —or—

    In a source, Disassembly, or Call Stack, right-click a line containing a breakpoint glyph and choose Location from Breakpoints on the shortcut menu.

    NoteNote

    In a source window, you might have to right-click the exact character where the breakpoint is set. This is necessary if the breakpoint is set on a specific character within a line of source code.

    A dialog box appears.

  2. For a file breakpoint, edit File to change the file where the breakpoint is set, edit Line to change the line number within the file, or edit Character to change the horizontal location on that line.

    By default, a file breakpoint will be hit only if the version of the source file where you set the breakpoint exactly matches the source file that the executable was compiled from. To change this default, clear Require source files to exactly match the original version in General, Debugging, Options Dialog Box.

    —or—

    For an address breakpoint, edit Address to change the memory location where the breakpoint is set or Language to change the syntax by which the debugger evaluates an expression in the Address box.

    —or—

    For a function breakpoint, edit Function to change the signature of the function where the breakpoint is set, edit Line to change the line number within the function, or edit Character to change the horizontal location on that line. Check Use Intellisense to verify the function name if you want Visual Studio Intellisense to check the validity of the function name you entered.

    —or—

    For a data breakpoint, edit Address to change the memory location being watched and Byte Count for the number of bytes being watched.

  3. Click OK.

See Also

Tasks

How to: Set a Function Breakpoint
How to: Set a Simple Breakpoint

Concepts

Breakpoints and Tracepoints