NET/MASTER Network Control Language (NCL) Programmer's Guide
Using Breakpoints to Suspend Execution
Debugging an NCL Process
106160 Tandem Computers Incorporated 9–47
Clearing Breakpoints The DEBUG CLEAR BREAKPOINT command clears single or multiple breakpoints in
an NCL process. The following screen sets five breakpoints, lists all breakpoints, and
clears all breakpoints:
(08:38) --------------------- OPERATOR CONTROL SERVICES ----------------------
START ZEX0902N THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
NNM1060 PROCEDURE ZEX0902N NCLID 579 PAUSED
DEBUG START ID=579
NNM1901 NCL 000579 DEBUG SESSION INITIATED
NNM1902 NCL 000579 SUSPENDED AT ZEX0902N.8 LINE 22
GO ID=579 Y
DEB B S=16 S=ZEX0902N.LEFT_TITLE.1 PROC=EXIT V=LINE TY=W T
NNM1909 NCL 000579 BREAKPOINT 1 CREATED
NNM1909 NCL 000579 BREAKPOINT 2 CREATED
NNM1909 NCL 000579 BREAKPOINT 3 CREATED
NNM1909 NCL 000579 BREAKPOINT 4 CREATED
NNM1909 NCL 000579 BREAKPOINT 5 CREATED
DEBUG LIST BREAKPOINTS
NNM1919 NCL 000579 BREAKPOINT 1 ZEX0902N.16
NNM1919 NCL 000579 BREAKPOINT 2 ZEX0902N.LEFT_TITLE.1
NNM1919 NCL 000579 BREAKPOINT 3 PROC=EXIT
NNM1919 NCL 000579 BREAKPOINT 4 VBL=LINE TYPE=WRITE
NNM1919 NCL 000579 BREAKPOINT 5 TERMINATION
NNM0999 *END* 5 BREAKPOINTS LISTED
DEBUG CLEAR BREAKPOINT=ALL
NNM1915 NCL 000579 5 BREAKPOINTS CLEARED
---------- ------------------ 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 BREAKPOINT command sets a breakpoint at the following
positions: statement 16 in the top-level procedure; statement 1 of the LEFT_TITLE
function; the exit to every procedure or function; the variable &LINE for write access;
and at the termination point of the NCL process. The DEBUG LIST BREAKPOINTS
command lists the breakpoints. The DEBUG CLEAR BREAKPOINT command clears
the breakpoints.