NET/MASTER Network Control Language (NCL) Programmer's Guide

Continuing Execution of an NCL Process
Debugging an NCL Process
106160 Tandem Computers Incorporated 9–57
Stepping a Specified Number of Steps
The following screen shows the results of stepping through a specified number of
steps at the current nesting level after suspending execution at statement 16 in the
ZEX0902N NCL procedure:
(13:46) --------------------- OPERATOR CONTROL SERVICES ----------------------
DEBUG STEP NEXT=4
---| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10+|
1 :
NNM1902 NCL 001506 SUSPENDED AT ZEX0902N.17 LINE 35
DEBUG SOURCE
NNM1926 NCL 001506 LINE# SMT EV ON STMT-TEXT FROM ZEX0902N
NNM1927 NCL 001506 35 17 0 0 DO &I = 1 TO 8 BY 1
NNM0999 *END*
DEBUG STEP NEXT=3
2 :
NNM1902 NCL 001506 SUSPENDED AT ZEX0902N.17 LINE 35
DEBUG STEP NEXT=3
3 : ********************
NNM1902 NCL 001506 SUSPENDED AT ZEX0902N.17 LINE 35
DEBUG STEP NEXT=3
4 : **********
NNM1902 NCL 001506 SUSPENDED AT ZEX0902N.17 LINE 35
DEBUG STEP NEXT=3
5 : ***************
NNM1902 NCL 001506 SUSPENDED AT ZEX0902N.17 LINE 35
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
In this example, the result of the DEBUG STEP NEXT=4 command is to step through
four statements at the current nesting level: that is statements 16, 17 (the start of the
DO loop that draws the histogram), 18, and 19 (the end of the DO loop). This DEBUG
STEP command executes the TOP_TITLE, LEFT_TITLE, and BAR functions. (No bar is
displayed, however, because there are no words of one character.) Execution is then
suspended at statement 17, as the DEBUG SOURCE command indicates.
The result of the first DEBUG STEP NEXT=3 command is to step through statements
17, 18, and 19 at the current nesting level. This DEBUG STEP command again executes
the TOP_TITLE, LEFT_TITLE, and BAR functions. Again, no bar is displayed, because
there are no words of two characters.
The next three DEBUG STEP NEXT=3 commands step through statements 17, 18, and
19 at the current nesting level. In each case, the TOP_TITLE, LEFT_TITLE, and BAR
functions are executed and a bar is displayed on the screen.
Note The DEBUG STEP NEXT=1 command is the same as the DEBUG STEP command.