NET/MASTER Network Control Language (NCL) Programmer's Guide
Continuing Execution of an NCL Process
Debugging an NCL Process
9–58 106160 Tandem Computers Incorporated
Automatically Displaying
Source Code
By using the DEBUG SOURCE command with the ON operand, the DEBUG STEP
command displays successive lines of NCL code in decompiled source format, as well
as in line number format.
By using the DEBUG SOURCE command with the OFF operand, the DEBUG STEP
command displays successive lines of NCL code in line number format only.
The following screen shows the result of stepping through an NCL procedure using
both DEBUG SOURCE ON and DEBUG SOURCE OFF:
(13:56) --------------------- OPERATOR CONTROL SERVICES ----------------------
DEBUG SOURCE ON
NNM1926 NCL 000579 LINE# SMT EV ON STMT-TEXT FROM ZEX0902N
NNM1927 NCL 000579 1 1 0 0 ZEX0902N: PROCEDURE EXTPARSE SIMPLE
NNM0999 *END*
NNM2307 NCL 000579 DEBUG SOURCE IS SET ON.
DEBUG STEP
NNM1926 NCL 000579 LINE# SMT EV ON STMT-TEXT FROM ZEX0902N
NNM1927 NCL 000579 15 2 0 0 IF &SYS.PARMCNT=0
NNM1902 NCL 000579 SUSPENDED AT ZEX0902N.2 LINE 15
DEBUG STEP
NNM1926 NCL 000579 LINE# SMT EV ON STMT-TEXT FROM ZEX0902N
NNM1927 NCL 000579 21 7 0 0 CMDLINE "GO ID="||&SYS.NCLID||" _Y"
NNM1902 NCL 000579 SUSPENDED AT ZEX0902N.7 LINE 21
DEBUG SOURCE OFF
NNM1926 NCL 000579 LINE# SMT EV ON STMT-TEXT FROM ZEX0902N
NNM1927 NCL 000579 21 7 0 0 CMDLINE "GO ID="||&SYS.NCLID||" _Y"
NNM0999 *END*
NNM2307 NCL 000579 DEBUG SOURCE IS SET OFF.
DEBUG STEP
NNM1902 NCL 000579 SUSPENDED AT ZEX0902N.8 LINE 22
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=> GO ID=579 Y
In this example, the decompiled source display format is turned on for all successive
DEBUG STEP commands by using the DEBUG SOURCE ON command. The result of
the first two DEBUG STEP commands is to step through two statements at the current
nesting level, that is statements 15 and 21, and display these statements in decompiled
source format.
The result of the next DEBUG SOURCE OFF command is to turn off the decompiled
source display format.
The next DEBUG STEP command steps through statement 22 at the current nesting
level. In this case, the step is displayed only in line number format.