Options within Interactive Debug

After interactive debug starts, you can provide one of the following during each pause or each time the language processor reads from the input stream.
  • A null line, which continues tracing. The language processor continues execution until the next pause or read from the input stream. Repeated input of a null line, therefore, steps from pause point to pause point until the program ends.
  • An equal sign (=), which re-executes the last instruction traced. The language processor re-executes the previously traced instruction with values possibly modified by instructions read from the input stream. (The input can also be an assignment, which changes the value of a variable.)
  • Additional instructions. This input can be any REXX instruction, including a command or call to another program. This input is processed before the next instruction in the program is traced. For example, the input could be a TRACE instruction that alters the type of tracing:
    TRACE L /* Makes the language processor pause at labels only */
    The input could be an assignment instruction. This could change the flow of a program, by changing the value of a variable to force the execution of a particular branch in an IF THEN ELSE instruction. In the following example, RC is set by a previous command.
    IF RC = 0 THEN
    DO
    instruction1
    instruction2
    END
    ELSE
    instructionA
    If the command ends with a nonzero return code, the ELSE path is taken. To force taking the first path, the input during interactive debug could be:
    RC = 0

Reference Reference

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/dfhrx00074.html