NET/MASTER Network Control Language (NCL) Programmer's Guide
Displaying Decompiled Source Code
Debugging an NCL Process
106160 Tandem Computers Incorporated 9–39
Displaying Multiple Statements in a Certain Direction
When displaying multiple statements in a certain direction, you can display:
Multiple statements in a forward direction from the current statement.
Multiple statements in a forward direction from the specified statement.
Multiple statements in a backward direction from the current statement.
Multiple statements in a backward direction from the specified statement.
The following screen displays multiple statements in a forward direction from the
current statement:
(15:20) --------------------- OPERATOR CONTROL SERVICES ----------------------
START ZEX0902N THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
NNM1060 PROCEDURE ZEX0902N NCLID 1094 PAUSED
DEBUG START ID=1094
NNM1901 NCL 001094 DEBUG SESSION INITIATED
NNM1902 NCL 001094 SUSPENDED AT ZEX0902N.8 LINE 22
GO ID=1094 Y
DEBUG SOURCE FW=10
NNM1926 NCL 001094 LINE# SMT EV ON STMT-TEXT FROM ZEX0902N
NNM1927 NCL 001094 22 8 0 0 PAUSE VARS=( &PAUSE )
NNM1927 NCL 001094 23 9 0 0 IF SUBSTR( UPPER( &PAUSE ), 1, 1 )\=="Y"
NNM1927 NCL 001094 24 10 3 0 THEN EXIT
NNM1927 NCL 001094 26 11 0 0 &CHARS. = "0"
NNM1927 NCL 001094 28 12 0 0 DO &I = 1 TO &SYS.PARMCNT BY 1
NNM1927 NCL 001094 29 13 4 0 &LEN = MIN( LENGTH( &&I ), 8 )
NNM1927 NCL 001094 30 14 4 0 &CHARS.&LEN = 1+&CHARS.&LEN
NNM1927 NCL 001094 31 15 4 0 END
NNM1927 NCL 001094 34 16 0 0 SAY TOP_TITLE()
NNM1927 NCL 001094 35 17 0 0 DO &I = 1 TO 8 BY 1
NNM1927 NCL 001094 36 18 5 0 SAY LEFT_TITLE( &I ) ":" BAR( &CHARS.&I
)
NNM0999 *END*
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
PM=>
In this example, the ZEX0902N NCL procedure is executed. The DEBUG START
command starts a debug session. The GO command resumes execution of the paused
NCL process. The DEBUG SOURCE command displays ten statements in a forward
direction from the current statement: that is, statements 8 through 18.