STEP command

The STEP command causes Debug Tool to dynamically step through a program, executing one or more program statements. In full-screen mode, it provides animated execution.

STEP ends if one or more of the following conditions is reached:
  • User attention interrupt
  • A breakpoint is encountered
  • Normal or unusual termination of the program
  • a programming language or Language Environment condition or exception
Read syntax diagramSkip visual syntax diagram
                      .-INTO---.      
>>-STEP--+---------+--+--------+--;----------------------------><
         +-integer-+  +-OVER---+      
         '-*-------'  '-RETURN-'      

integer
Indicates the number of statements performed. The default value is 1. If integer is greater than 1, the statement is performed as if it were that many repetitions of STEP with the same keyword and a count of one. The speed of execution, or the pace of stepping, is set by either the SET PACE command, or with the Pace of visual trace field on the Profile panels.
*
Specifies that the program should run until interrupted. STEP * is equivalent to GO.
INTO
Steps into any called procedures or functions. This means that stepping continues within called procedures or functions.
OVER
Steps over any procedure call or function invocations. This operand provides full-speed execution (with no animation) while in called procedures and functions, resuming STEP mode on return.

If you are debugging a disassembled program, verify that you have set a breakpoint in the calling program. Without the breakpoint, Debug Tool cannot resume STEP mode on return and the application continues to run until it ends.

RETURN
Steps to the return point the specified number of levels back, halting at the statement following the corresponding procedure call or function invocation. This operand provides full-speed execution (with no animation) for the remainder of the current procedure or function, and for any called procedures or functions, resuming STEP mode on return.

If you are debugging a LangX COBOL or disassembled program, do not use the STEP RETURN command because Debug Tool cannot identify the return point. Instead, set a breakpoint in the calling program and enter the GO command.

Usage notes

Examples