Inspect Manual

Introduction
Inspect Manual429164-006
1-4
Support of Optimizing Compilers
Although the functions and names of high-level commands are uniform across all
supported languages, the parameters to several of the commands are language-
dependent. Therefore, you have the flexibility needed to offer you symbolic access to
your program. When debugging a COBOL program, use this COBOL syntax to refer to
a data item:
However, when debugging a TAL program, use this TAL syntax:
The Inspect command is the same (DISPLAY), but the way you refer to the data item is
different.
Support of Optimizing Compilers
Inspect recognizes optimization performed across statements, but it issues a message
when optimization has:
Removed the code for a statement
Altered the code so that Inspect might report incorrect results
For details about optimization, see the respective language reference manual. For
more information about Inspect and optimization, see Debug Events on page 2-8 and
Code Locations on page 2-16.
Support for Programs with Multilanguage Source
Using the Binder (TNS) or nld (TNS/R) utility, you can create programs whose source
code is written in more than one language. Inspect enables you to debug these multi-
source programs. Inspect also automatically selects the appropriate source language
to use to interpret high-level Inspect commands.
Local System Customization
When an Inspect session begins, Inspect looks for an EDIT file named INSPLOCL in
the volume and subvolume containing the Inspect program file. If this INSPLOCL file
exists, Inspect reads and executes the Inspect commands it contains. Consequently,
your system manager can customize the Inspect environment for all Inspect sessions
that run on your system.
Personal Customization
After reading the INSPLOCL file, Inspect looks for an EDIT file named INSPCSTM in
your logon volume and subvolume. If this file exists, Inspect reads and executes the
Inspect commands it contains. Consequently, you can customize your Inspect
environment by creating an INSPCSTM file that includes Inspect commands to
DISPLAY first-name OF manager OF department (dept-num)
DISPLAY department[dept^num].manager.first^name