COBOL Manual for TNS/E Programs (H06.03+)

HP COBOL Manual for TNS/E Programs520347-003
15-1
15 Debugging Tools
This section briefly describes the HP debugging tools and refers you to appropriate
sources for more information.
Topics:
Debugging Lines
Run-Time Debugger
FIXERRS Macro
Debugging Lines
Debugging lines, a batch-oriented COBOL debugging tool, apply to individual source
program lines.
Debugging lines are compiled only if the source program includes a DEBUGGING
MODE clause (see SOURCE-COMPUTER Paragraph); otherwise, they are handled as
comments.
You can put debugging lines anywhere in a source program. You usually use them to
report values of data items at strategic points in the program.
A debugging line has the letter D or d in the indicator area (column 1 in Tandem
reference format, column 7 in ANSI reference format). If a debugging line contains a
COPY statement, every line that the COPY statement introduces inherits the D or d in
its indicator column.
Note. The code that the compiler generates when it compiles debugging lines is not the same
as the code that it generates when it ignores them. The additional code that the compiler
generates for the debugging lines can alter the alignment of data items and cause the program
to behave differently.