How to: Edit a Breakpoint Location
This topic applies to:
Pro and Team
Does not apply
Command or commands hidden by default.
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
In the Breakpoints window, right-click a breakpoint and choose Location from the shortcut menu.
In a source, Disassembly, or Call Stack, right-click a line containing a breakpoint glyph and choose Location from Breakpoints on the shortcut menu.
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.
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.
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.
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.
For a data breakpoint, edit Address to change the memory location being watched and Byte Count for the number of bytes being watched.