Debug Editor Shortcut Keys (Quick Reference)

Category:
Miscellaneous
Type:
Snippets
Difficulty:
Beginning

Author:Ethan

Version Compatibility: Visual Basic 6

Instructions: Copy the declarations and code below and paste directly into your VB project.

Debug Editor Shortcut Keys

Use the following key combinations while you are debugging your project.

Note You can change or create keyboard shortcuts in Keyboard of the Environment options in the Options dialog box.

Display documentation for the active window .............. F1

Display a system menu for the application window......... ALT+SPACEBAR

Add and remove breakpoints on the current lines.......... F9

Clear all breakpoints.................................... CTRL+SHIFT+F9

Disable breakpoint....................................... CTRL+F9

Display Auto window and move cursor into it.............. CTRL+ALT+A

Display Breakpoints dialog box........................... CTRL+B

Display Call Stack window and move cursor into it........ CTRL+ALT+C

Display Immediate window and move cursor into it.

Not available if you are in the Text Editor window....... CTRL+ALT+I

Display Locals window and move cursor into it............ CTRL+ALT+L

Display Running Document window and move cursor into it.. CTRL+ALT+R

Adds a watch on the currently selected word.............. SHIFT+F9

Display the next statement............................... ALT+* on the NUM pad

Display the shortcut menu................................ SHIFT+F10

Display Threads window and move cursor into it........... CTRL+ALT+H

Display Watch window and move cursor into it............. CTRL+ALT+W

End debugging session.................................... SHIFT+F5

Execute code one statement at a time, following

execution into function calls Step Into)................. F11

Execute the next line of code but not follow

execution through any function calls (Step Over)......... F10

Execute the remaining lines of a function in

which the current execution point lies (Step Out)........ SHIFT+F11

Restart a debugging session.............................. CTRL+SHIFT+F5

Resume execution of your code from the current

statement to the selected statement (Run to Cursor)..... CTRL+F10

Run the application..................................... F5

Run the code without invoking the debugger

(Start without Debugging)............................... CTRL+F5

Set the next statement.................................. CTRL+SHIFT+F10

Stop execution (Break).................................. CTRL+BREAK