Controlling Program Execution

Stepping through your program

Once execution of your program is halted, you can step through your lines of code using the following commands on the Debug menu or toolbar:

  1. Step Over (F10). Executes one source line. If the source line contains a call, executes the entire routine without stepping through the individual instructions.
  2. Step In (F11). Executes one source line. If the source line contains a call, stops just before executing the first statement of the routine.
  3. Step Out (Shift-F11). Executes one source line. If the source line is part of a routine, executes the remaining lines of the routine and returns control to the caller of the routine.

Running to the Cursor Location (F4)

The Run to Cursor command runs the current session to the cursor location in the Source View Window and pauses the program. To run to the cursor location:

  1. In the Source View Window, click the line where you want to stop program execution.
  2. From the main menu, choose Debug>Run to Cursor.

Tip To stop program execution every time the program reaches the line, set a breakpoint.

Pausing a Program

The Pause command temporarily stops all threads in the current session. Pausing a session is similar to stopping at a breakpoint. To pause a running session:

Continuing a Program

If a session is paused or stopped at a breakpoint, you can use the Continue command to resume execution of all threads in the session. To continue execution of the current session:


Copyright © 2004 Tito Software Corporation. All rights reserved.

Browser Based Help. Published by chm2web software.