| [Page 619 (continued)] (See Appendix D for more details.) Break a program at a specified line. 1. | Place the cursor on the desired line. | 2. | Press F9. A red dot will appear to the left of the line on the gray bar to indicate that the line has been set as a breakpoint. Whenever the running program reaches the breakpoint, it will go into debug mode. |
Note: To remove this breakpoint, repeat Steps 1 and 2. or 1. | Click on the thick gray bar at a point to the left of the line. Click again to remove the breakpoint. |
or 1. | Place the cursor on the line, press the right mouse button, and click on "Run to Cursor." In this case, the line is not set as a breakpoint; however, execution will stop the first time the line is reached. |
[Page 620]Remove all breakpoints. 1. | Press Alt/D/D or Ctrl + Shift + F9. |
Run a program one statement at a time. 1. | Break the program at a specific line using a technique described in Item A of this section. | 2. | Press the F8 key to execute each statement. |
Run the program one statement at a time, but execute each general procedure call without stepping through the statements in the procedure one at a time. 1. | Break the program at a specific line using a technique described in Item A of this section. | 2. | Repeatedly press the Shift + F8 key to execute successive liines and each general procedure without stepping through each statement in the procedure. |
Continue execution of a program that has been suspended. Set the next statement to be executed in the current procedure. 1. | Place the cursor anywhere in the desired statement. | 2. | Right-click on the line, and select "Set next statement." |
Determine the value of an expression during debug mode. 1. | Press Ctrl + Alt + W, followed by 1. | 2. | Type the expression into the Name list, and press Enter. |
or 1. | In debug mode, hover the cursor over the variable to have its value displayed. |
|