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

Debugging Guidelines
Debugging an NCL Process
9–10 106160 Tandem Computers Incorporated
Defining the Default NCL ID The default NCL ID is defined as that of the most current NCL process being
debugged. When you use DEBUG START for an environment, the default NCL ID is
set only if the existing debug NCL ID is null, or the process that was being debugged
has terminated.
A scenario in which three NCL procedures start at different times, with DEBUG in
effect, is shown to help in describing how the default NCL ID changes with time, as in
the following table:
Time Default NCL ID PROC1 PROC2 PROC3
15.00 Null
15.05 ID=000001 Starts
15.10 ID=000001 Starts
15.15 Null Finishes
15.20 ID=000003 Starts
15.25 ID=000003
15.30 Null Finishes
15.31 Null
Note that when PROC2 starts executing, a default ID (000001) already exists. This
default ID becomes null when PROC1 finishes executing at time 15.15, even though
PROC2 (000002), which is also being debugged, is still in execution. When a new
process starts (PROC3), there is no default ID so a new one (000003) is assigned. A
default NCL ID is only assigned if none exists (if it is null). If a process being
debugged terminates, the default ID becomes null, as shown at time 15.30.