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

Debugging an NCL Process From Start to Finish
Debugging an NCL Process
106160 Tandem Computers Incorporated 9–73
Step 7
Display the source code at statement 47, by using the DEBUG SOURCE command, as
shown in the following screen.
Display the values of the variables used to draw the calendar, by using the DEBUG
DISPLAY command, as shown in the following screen. The following table analyzes
the current values of the variables used to draw the calendar:
Variable Value Comment
&DAY 1 Seems correct; it is the first pass through the DO loop.
&DAYS 29 Seems correct.
&FIRST 7 Seems correct.
&LINE “ … 1” Seems correct.
&LINELENGTH 35 Seems correct.
Resume execution to the next breakpoint, by using the DEBUG RESUME command, as
shown in the following screen. The display line, &LINE, is output to your OCS
window.
(07:10) --------------------- OPERATOR CONTROL SERVICES ----------------------
DEBUG SOURCE
NNM1926 NCL 000670 LINE# SMT EV ON STMT-TEXT FROM ZEX0904N
NNM1927 NCL 000670 55 47 12 0 IF &LINELENGTH%7=0
NNM0999 *END*
DEBUG DISPLAY V=LINE V=LINELENGTH V=DAYS V=DAY V=FIRST
NNM1921 NCL 000670 VBL LINE VAL " 1 "
NNM1921 NCL 000670 VBL LINELENGTH VAL "35"
NNM1921 NCL 000670 VBL DAYS VAL "29"
NNM1921 NCL 000670 VBL DAY VAL "1"
NNM1921 NCL 000670 VBL FIRST VAL "7"
DEBUG RESUME
NNM1905 NCL 000670 RESUMED
1
NNM1902 NCL 000670 SUSPENDED AT ZEX0904N.44 BP 2 LINE 47
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>