COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-284
USE DEBUGGING
USE DEBUGGING
USE DEBUGGING traces procedure-names as a program executes. Immediately
before a procedure is executed, the code for the section containing USE DEBUGGING
is executed. If you collect and report procedure-names from a special register as the
program executes, you can monitor the actual sequence of operations and detect logic
errors.
The symbolic debuggers are significantly more versatile than the USE DEBUGGING
statement. For information on the symbolic debuggers, see Run-Time Debuggers.
ALL REFERENCES OF name
is checked for syntactic correctness but diagnosed as unsupported. If the selected
debugger is symbolic, use the BREAK command to observe all uses of and
changes to a data item.
file-name
is checked for syntactic correctness but diagnosed as unsupported. If the selected
debugger is symbolic, use the BREAK command to observe all uses of a file.
procedure
is one or more procedure-names to trace during program execution. procedure
cannot be named in multiple USE statements.
Note. The 1985 COBOL standard classifies USE DEBUGGING as obsolete, so you are
advised not to use it, even in TNS HP COBOL programs. The NMCOBOL compiler does not
recognize it.
DEBUGGING
FOR
USE
REFERENCES OF
ALL
ON
.
procedure
filename
PROCEDURESALL
name
VST234.vsd