COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
Any mechanism that calls the debugging facility calls the selected run-time debugger. Examples
of such mechanisms are:
• The RUND command
• An explicit call to the Debug debugger by the process
• A command interpreter DEBUG command
For more information, see:
• Debugging (page 968)
• Visual Inspect’s online help
• Native Inspect Manual
Debugger Selection
The INSPECT attribute setting determines which debugger is selected for a process:
• If INSPECT is ON, Visual Inspect is selected, provided that a client connection exists.
• If INSPECT is ON and a Visual Inspect client connection does not exist, Native Inspect is
selected.
• If INSPECT is OFF, Native Inspect is selected.
You set the INSPECT attribute in any of these ways:
• Compile the program without a NOINSPECT directive (described in INSPECT and NOINSPECT
(page 555)).
• Compile the program with a SAVEABEND directive (described in SAVEABEND and
NOSAVEABEND (page 565)).
• Set the INSPECT attribute in the linker.
• Use the PARAM INSPECT ON command in the command interpreter environment before
running the process
• Specify INSPECT ON as a run option in the RUN command that initiates the process.
Visual Inspect is available only if you established a connection to it before the process entered
debugging mode.
FIXERRS Macro
FIXERRS is a TACL macro that helps you find and fix syntax errors in your source file.
To use the FIXERRS TACL macro to fix errors in a source file, you must compile your program with
the directive ERRORFILE (page 549). You can then use FIXERRS with the error-logging file produced
by that directive.
The FIXERRS TACL macro starts a two-window TEDIT session and displays an error message on the
top line of the screen with the corresponding source text in the remaining lines. When you start
FIXERRS, the cursor is positioned at the first error in the source text.
To start FIXERRS enter:
error-file
is the name of the error file produced by the compiler. This file has a file code of 106.
700 Debugging Tools










