Debugger Keyboard Shortcuts and Menus
The following keyboard shortcuts apply to the debugging tools in the Debugger window or in the FoxPro frame.
Action | Keyboard |
---|---|
Resume | F5 |
Cancel | ESC |
Step Into | F8 |
Step Over | F6 |
Step Out | SHIFT+F7 |
Run To Cursor | F7 |
Trace Window | ALT+8 |
Watch Window | ALT+3 |
Locals Window | ALT+4 |
Call Stack Window | ALT+7 |
Debug Output Window | ALT+2 |
Toggle Breakpoint | F9 |
Clear Breakpoints | CTRL+SHIFT+F9 |
Breakpoints | CTRL+B |
Open File | CTRL+O |
Save Configuration | ALT+S |
Exit Debugger | ALT+F4 |
File Menu, Debugger Window
This contains options that make it possible for you to open programs and debugging configurations. You also can save debug output to a file.
Menu Commands
- Open
Displays the Open dialog box so you can specify a program to display in the Trace window. Opening a program does not run the program. - Load Configuration
Loads breakpoints, watches, and events to be tracked from a configuration file (.dbg file). Select the dialog button to display the Open dialog box, which makes it possible for you to specify a file. - Save Configuration
Saves the current breakpoints, watches, and events to be tracked into a configuration file (.dbg file) so they can be restored later. Select the dialog button to display the Open dialog box, which makes it possible for you to specify a file. - Save Output As
Writes the text displayed in the Debug Output window to a file specified in the Save As dialog box. - Exit
Closes the Debugger window and returns you to the main Visual FoxPro window.
Debug Menu, Debugger Window
This contains options for stepping through code. You also can set the speed at which commands are executed as you watch.
Menu Commands
Do
Begins executing the program open in the Trace window. If no program is open in the Trace window, this displays the Do dialog box, so you can specify a program or form to trace. The program or form you specify is executed with program execution suspended at the first line of executable code.Resume
Is available if program execution is suspended. Continues execution of the program in the Trace window at the current line of code.Cancel
Closes and stops executing the program or form in the Trace window.Fix
Is available if program execution is suspended.If you are tracing through a program, Fix prompts you to cancel the program and then opens it in an editing window, at the same position that the cursor is in the Trace window.
If you are tracing through code in a form, Fix prompts you to cancel execution and clear the form object from memory. Then an editing window in the Form Designer opens at the same position that the cursor is in the Trace window.
Step Out
Continues executing the code in a procedure without stepping through the code line by line. Program execution is suspended again on the line of code following the procedure call in the calling program.Step Over
Executes the next line of code. If the next line of code calls a function, method, or procedure, then the function, method, or procedure is executed in the background.Step Into
Executes the next line of code.Run To Cursor
Executes code from the current line indicator to the line of code with the cursor. Click the line of code on which you want to suspend execution to place the cursor on that line.Throttle
Opens the Execution Throttle dialog box so you can specify the delay in seconds between the execution of each line of code.Set Next Statement
Places the current line marker on the line of code with the cursor. This line of code will then be executed when you step or resume execution.
Tools Menu, Debugger Window
This provides access to the Debugger dialog boxes.
Menu Commands
- Breakpoints
Opens the Breakpoints dialog box so you can add, delete, enable, or disable breakpoints. - Event Tracking
Opens the Event Tracking dialog box so you can specify which events are written to the Debug Output window or a file when they occur. - Coverage Logging
Opens the Coverage dialog box so you can turn coverage logging on or off and specify a file for the coverage log.