TAL Reference Manual
Compiler Directives
TAL Reference Manual—526371-001
16-54
INSPECT Directive
INSPECT Directive
INSPECT sets the Inspect product as the default debugger for the object file.
The default is NOINSPECT.
Usage Considerations
This directive can appear in the compilation command or anywhere in the source code.
The last INSPECT or NOINSPECT directive in a source file takes effect for the object
file.
If you omit the INSPECT directive, Debug is the default debugger for the object file.
After compilation, you can select the Inspect product as the default debugger when you
use Binder or run the object code. If you set the Inspect product in the object file, you
cannot override it at run time.
Effect of Other Directives
If SAVEABEND is in effect, BINSERV and Binder automatically turn the INSPECT
setting on. If NOINSPECT is in effect, BINSERV and Binder turn SAVEABEND off.
If you want to reference variables symbolically in an Inspect session, you must include
one or more SYMBOLS directives in your source code. SYMBOLS generates the
symbol table in the object file. You can generate symbols for the entire source file or for
individual procedures or data blocks. (If you do not specify SYMBOLS, the Inspect
product only recognizes procedure names and code locations.)
Example of INSPECT Directive
This example requests the Inspect product and saves symbols for the object file for
use with the Inspect product:
?INSPECT, SYMBOLS
PROC a;
BEGIN
!Lots of code
END;
VST1633.vsd
NOINSPECT
INSPECT