Share via


Edit a Breakpoint Location

The breakpoint ___location specifies the line and character where the breakpoint resides in a Transact-SQL script file. You can edit the breakpoint ___location to move the breakpoint to another ___location in the script, or to a different script.

Editing a Location

When you edit a breakpoint ___location, the breakpoint moves to the new ___location, carrying with it all of the existing properties, such as a hit count or condition.

To Edit a Breakpoint Location

  1. In the editor window, right-click the breakpoint glyph, and then click Location on the shortcut menu.

    -or-

    In the Breakpoints window, right-click the breakpoint glyph, and then click Location on the shortcut menu.

  2. In the File Breakpoint dialog box, edit File to specify a new file, Line to specify a new line, or Character to specify a new ___location within the line. If the new file you specify is already open in a query editor window, the breakpoint is moved to that editor window. If the file is not opened, a new editor window is opened, the file is loaded in, and the breakpoint moved to the new ___location.

    The Allow the source code to be different from the original version option has no effect when debugging Transact-SQL.

See Also

Tasks

Specify a Hit Count

Specify a Breakpoint Action

Specify a Breakpoint Condition

Specify a Breakpoint Filter