Guardian Programmer's Guide

Table Of Contents
Debugging, Trap Handling, and Signal Handling
Guardian Programmer’s Guide 421922-014
25 - 6
Specifying the Debugging Environment
You can also specify a home terminal on which you want Native Inspect to run:
TACL> debug $myuproc, term $ztn10.#pthef
Native Inspect is used to debug native processes; it does not support process
debugging of TNS processes. See the Native Inspect Manual for further information.
Specifying a Breakpoint
You can put a process into the Debug state by specifying a breakpoint, as follows:
1. With the process already in the Debug state, set a breakpoint.
2. Resume normal processing of the process.
3. The process enters the Debug state when it encounters the breakpoint.
Specifying the Debugging Environment
Specifying the debugging environment primarily involves choosing between the Debug
and Inspect debuggers in the TNS and TNS/R environments, the Visual Inspect
debuggers in the native environments and the Native Inspect debugger in the TNS/E
environment. However, you can also choose to create a saveabend file that saves
data area and file status information if the process abnormally terminates. The
saveabend feature is available only with the Inspect debugger.
By default, you get the Debug program when entering the Debug state on TNS/R
systems and Visual Inspect when entering the Debug state on TNS/E systems. If the
parent process is running under a debugger when a new process is created, then the
new process inherits the debugging environment of the parent process. However, you
can specify the debugging environment as follows:
Using compiler directives
Using the Binder, nld utility (in the TNS/R environment), or the eld utility (in the
TNS/E environment)
Using the TACL SET INSPECT command
Using the TACL RUN command
Using the PROCESS_CREATE_ or PROCESS_LAUNCH_ procedure
The following paragraphs describe each of the above alternatives.
Note that once your process is in the Debug state under the Inspect program, you can
switch back and forth between Inspect and Debug at will.
Note. If If Inspect of Visual Inspect is not available on your systems and you try to invoke it,
your process runs under Debug (on TNS/R systems) or Native Inspect when available on
TNS/E systems. If Native Inspect is not available, then the request to debug the process is
ignored and the process continues execution.