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

Starting a Single Debug Session
Debugging an NCL Process
106160 Tandem Computers Incorporated 9–25
Targeting the OCS Screen in Window 2 From OCS Window 1. From an OCS screen in
window 1, if you target window 2 and window 2 is currently displaying an OCS
screen, the primary processing environment associated with the OCS screen is targeted
for debugging. You can target currently executing, newly executed, or both types of
NCL processes in the environment.
Note Targeting the primary processing environment associated with an OCS window can suspend execution of
all NCL procedures executed in that window. This includes NCL procedures executed from that OCS
window that invoke Edit Services, Log Browse, Command Entry, and online help.
If you unintentionally start a debug session for one of these NCL procedures, you can recover in at least
two ways—by using the DEBUG STOP ID=ncl-id command to terminate execution of the NCL process
immediately or by using the DEBUG RESUME ID=ncl-id to allow the NCL process to continue executing
until it terminates execution normally.
For example, if window 2 is currently displaying the OCS screen, the following
command (entered from an OCS screen in window 1) targets newly executed NCL
processes in OCS window 2:
DEBUG START WINDOW=2
The following message displays the results of the command in OCS window 1:
NNM1948 NEW NCL WILL BE SUSPENDED IN WINDOW 2
Example
The following screen shows the steps you could use to target OCS window 2 for
debugging from OCS window 1 after splitting the screen:
(13:01) --------------------- OPERATOR CONTROL SERVICES ----------------------
OCSID ONE
NNM0363 OCS WINDOW ID SET
DEBUG START WINDOW=2
NNM1948 NEW NCL WILL BE SUSPENDED IN WINDOW 2
NNM1901 NCL 001591 DEBUG SESSION INITIATED
NNM1902 NCL 001591 SUSPENDED AT ZEX0902N.1 LINE 1
DEBUG STEP
NNM1902 NCL 001591 SUSPENDED AT ZEX0902N.2 LINE 15
---------- ------------------ NonStop NET/MASTER D30 ---------------- ONE
M=>
(13:00) . . . . . . . . . . . . . . . . . .
OCSID TWO
NNM0363 OCS WINDOW ID SET
START ZEX0902N THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- TWO
M=>