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

Starting a Single Debug Session
Debugging an NCL Process
9–18 106160 Tandem Computers Incorporated
The following screen shows how to target a single NCL process in OCS, by entering
commands from the OCS command input line:
(12:47) --------------------- OPERATOR CONTROL SERVICES ----------------------
START ZEX0902N THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
NNM1060 PROCEDURE ZEX0902N NCLID 1051 PAUSED
SHOW NCL
NNM1036 NCLID BASEPROC CURRENT LEV W TYPE INIT OWNER G P P-UNITS
NNM1037 1051 ZEX0902N ZEX0902N 1 1 START NMTJN NMTJN 1 1 21
NNM1041 ....PROCESSING PAUSE LINE 22
NNM0999 *END*
DEBUG START ID=1051
NNM1901 NCL 001051 DEBUG SESSION INITIATED
NNM1902 NCL 001051 SUSPENDED AT ZEX0902N.8 LINE 22
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
PM=>
In this example, after you execute the ZEX0902N NCL procedure using the START
command, execution pauses at the PAUSE statement. The SHOW NCL command
then shows that the NCL ID of the ZEX0902N NCL process is 1051. The DEBUG
START command starts a debug session for the ZEX0902N NCL process, the results
showing that the NCL process is suspended at statement 8, line 22, in the decompiled
source code. You would subsequently use other DEBUG commands to debug the
ZEX0902N NCL process.
Note The P mode indicator to the left of the OCS command input line prompt indicates that one or more NCL
processes executing in your primary processing environment are currently paused.
Targeting NCL Processes
by Execution State
You can target one or more NCL processes for debugging by execution state, by using
the PROCS operand of the DEBUG START command. You can target:
Currently executing NCL processes. These are NCL processes that are executing
when the debug session is started. To target these NCL processes, use the
PROCS=CURRPROCS operand of the DEBUG START command.
Newly executed NCL processes. This is the default and refers to NCL processes
that are executed after starting the debug session. To target these NCL processes,
either use the PROCS=NEWPROCS operand of the DEBUG START command or
omit the PROCS operand.
Both currently executing and newly executed NCL processes. To target these NCL
processes, use the PROCS=ALLPROCS operand of the DEBUG START command.