How to: Edit a Breakpoint Location

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic does not apply Topic does not apply Topic applies Topic does not apply

Standard

Topic applies

Topic applies

Topic applies

Topic applies

Pro and Team

Topic applies

Topic applies

Topic applies

Topic applies

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

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

  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.

    Note

    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