Previous Topic: Start and Stop an NCL Debug Session

Next Topic: Statement Breakpoints

Control the Execution of NCL Processes

Once a debug session has been established, the debugger can issue various commands to control the execution of the processes that are subsequently attached to the debug session. The commands that can be used have the effect of either suspending a process, resuming the execution of a process, or both.

The following commands can be used to suspend an NCL process while it is executing:

DEBUG HOLD

This command flags the process for immediate suspension, before the next statement is executed.

DEBUG STEP

This command indicates to debug that the process is to be suspended after the specified number of statements have been executed. The NEXT= operand can be used to indicate how many statements of the process to allow before the process is suspended.

Both commands have the effect of putting the NCL process into a wait state. The SHOW NCL command indicates that the process has been suspended.

Another way for a process to become suspended is indirectly, using the DEBUG BREAKPOINT command. The DEBUG BREAKPOINT command defines a condition that must be satisfied before the process is suspended. The following conditions can be specified: