COBOL Manual for TNS and TNS/R Programs
Debugging Tools
HP COBOL Manual for TNS and TNS/R Programs—522555-006
15-5
Inspect
Inspect
•
For non-PIC programs
•
Symbolic
•
Interactive
•
Its LOW command allows you to reach machine code (the Inspect debugger in
low-level mode is similar to the Debug debugger but more convenient)
•
Handles TNS and native HP COBOL programs differently—see Using the Inspect
and Visual Inspect Debuggers
For more information, see the Inspect Manual.
Debug
•
Precursor to the Inspect debugger
•
For non-PIC programs
•
Low-level—you must use the addresses, rather than the names, of procedures and
data items
To obtain the addresses, you must compile your program with these directives:
This is what each directive lists, in the order the information appears in the listing:
Compiler Directives References
COBOL85 ICODE
LMAP
MAP
IICODE and NOICODE
LMAP and NOLMAP
MAP and NOMAP
NMCOBOL INNERLIST
MAP
INNERLIST and NOINNERLIST
MAP and NOMAP
Directive Information Provided
ICODE For each source statement:
•
Instruction codes generated
•
Code block relative address
An asterisk marks the beginning of each source statement.
INNERLIST Immediately after each source statement:
Generated machine instructions in mnemonic form
LMAP Base addresses of code and data blocks
(located in column headed “BASE”)
MAP For each paragraph and section header:
Code block relative address
For each data item:
Summary of storage attributes (including data block relative address