Guardian Programmer's Guide

Table Of Contents
Debugging, Trap Handling, and Signal Handling
Guardian Programmer’s Guide 421922-014
25 - 8
Specifying the Debugging Environment
The next example also establishes the Inspect program as the default debugger while
specifying that a saveabend file should be created:
> SET INSPECT SAVEABEND
The last example establishes Debug as the default debugger:
> SET INSPECT OFF
The environment set up by the SET INSPECT command can be overridden by a RUN
command, a Binder command, or a TAL compiler directive.
See the TACL Reference Manual for a complete description of the SET INSPECT
command.
Using the TACL RUN Command
You can use the TACL RUN command to set the debugging environment for the
process that you are starting by supplying the Inspect option.
You can establish the Inspect program as the debugger as follows:
> RUN objfile /INSPECT ON/
You can specify a saveabend file and establish the Inspect program as the debugger
as follows:
> RUN objfile /INSPECT SAVEABEND/
To select Debug as the debugger, enter the following:
> RUN objfile /INSPECT OFF/
The environment set up by the RUN command can be overridden by a linker command
(with either Binder or nld) or a compiler directive.
For more information about the TACL RUN command, refer to the TACL Reference
Manual.
Using the PROCESS_CREATE_ or
PROCESS_LAUNCH_ Procedure
You can specify the process debugging environment when you create a process using
the PROCESS_CREATE_ procedure. You have already seen how to use this
procedure to put the new process in the Debug state. Now, using bit 15 of the debug-
options parameter, you can specify the debugger you want to use.
Set bit 15 of the debug-options parameter to 1 to use the Inspect program, and set
it to 0 to use Debug. Whether the setting of bit 15 overrides any value supplied by the
linker or the compiler depends on bit 14: if bit 14 is set to 1, then the value supplied in
bit 15 specifies the debugger, regardless of any value supplied by the linker or
compiler. If bit 14 is 0, then bit 15 does not override any value supplied by the linker or
compiler.