You can control how the Transact-SQL debugger operates by using the following menu commands, toolbars, and shortcuts:
The following table shows the debugger menu commands, toolbar buttons, and keyboard shortcuts.
|
Debug menu command
|
Editor shortcut command
|
Toolbar button
|
Keyboard shortcut
|
Action
|
|---|
|
Windows/Breakpoints
|
Not available
|
Breakpoints
|
CTRL+ALT+B
|
Display the Breakpoints window in which you can view and manage breakpoints.
|
|
Windows/Watch/Watch1
|
Not available
|
Breakpoints/Watch/Watch1
|
CTRL+ALT+W, 1
|
Display the Watch1 window.
|
|
Windows/Watch/Watch2
|
Not available
|
Breakpoints/Watch/Watch2
|
CTRL+ALT+W, 2
|
Display the Watch2 window.
|
|
Windows/Watch/Watch3
|
Not available
|
Breakpoints/Watch/Watch3
|
CTRL+ALT+W, 3
|
Display the Watch3 window.
|
|
Windows/Watch/Watch4
|
Not available
|
Breakpoints/Watch/Watch4
|
CTRL+ALT+W, 4
|
Display the Watch4 window.
|
|
Windows/Locals
|
Not available
|
Breakpoints/Locals
|
CTRL+ALT+V, L
|
Display the Locals window.
|
|
Windows/Call Stack
|
Not available
|
Breakpoints/Call Stack
|
CTRL+ALT+C
|
Display the Call Stack window.
|
|
Windows/Threads
|
Not available
|
Breakpoints/Threads
|
CTRL+ALT+H
|
Display the Threads window.
|
|
Continue
|
Not available
|
Continue
|
ALT+F5
|
Run to the next breakpoint. Continue is not active until you are focused on a Query Editor window that is in debug mode.
|
|
Start Debugging
|
Not available
|
Start Debugging
|
ALT+F5
|
Put a Query Editor window into debug mode and run to the first breakpoint. If you are focused on a Query Editor window that is in debug mode, Start Debugging is replaced by Continue.
|
|
Break All
|
Not available
|
Break All
|
CTRL+ALT+BREAK
|
This feature not used by the Transact-SQL debugger.
|
|
Stop Debugging
|
Not available
|
Stop Debugging
|
SHIFT+F5
|
Take a Query Editor window out of debug mode and return it to regular mode.
|
|
Detach All
|
Not available
|
Not available
|
Not available
|
Stops debug mode, but executes the remaining statements in the Query Editor window.
|
|
Step Into
|
Not available
|
Step Into
|
F11
|
Run the next statement, and also open a new Query Editor window in debug mode if the next statement runs a stored procedure, trigger, or function.
|
|
Step Over
|
Not available
|
Step Over
|
F10
|
Same as Step Into, except that no functions, stored procedures, or triggers are debugged.
|
|
Step Out
|
Not available
|
Step Out
|
SHIFT+F11
|
Execute the remaining code in a trigger, function, or stored procedure without pausing for any breakpoints. Regular debug mode resumes when control is returned to the code that called the module.
|
|
Not available
|
Run To Cursor
|
Not available
|
CTRL+F10
|
Execute all code from the last stop location to the current cursor location without stopping at any breakpoints.
|
|
QuickWatch
|
QuickWatch
|
Not available
|
CTRL+ALT+Q
|
Display the QuickWatch window.
|
|
Toggle Breakpoint
|
Breakpoint/Insert Breakpoint
|
Not available
|
F9
|
Position a breakpoint on the current or selected Transact-SQL statement.
|
|
Not available
|
Breakpoint/Delete Breakpoint
|
Not available
|
Not available
|
Delete the breakpoint from the selected line.
|
|
Not available
|
Breakpoint/Disable Breakpoint
|
Not available
|
Not available
|
Disable the breakpoint on the selected line. The breakpoint remains on the line of code, but will not stop execution until it is reenabled.
|
|
Not available
|
Breakpoint/Enable Breakpoint
|
Not available
|
Not available
|
Enable the breakpoint on the selected line.
|
|
Delete All Breakpoints
|
Not available
|
Not available
|
CTRL+SHIFT+F9
|
Delete all breakpoints.
|
|
Disable All Breakpoints
|
Not available
|
Not available
|
Not available
|
Disable all breakpoints.
|
|
Not available
|
Add Watch
|
Not available
|
Not available
|
Add the selected expression to the Watch window.
|