FORTRAN Reference Manual

Running and Debugging Programs
FORTRAN Reference Manual528615-001
11-10
Using Inspect
Using Inspect
Inspect is an interactive-symbolic debugger that lets you control program execution,
display values, and modify values in terms of source-language symbols. Inspect has
two basic modes: high-level and low-level.
High-Level Inspect
Using high-level Inspect you can:
Identify code and data locations using source language expressions.
Assign values to data locations, and display values from data locations in a specific
format.
Step through program execution by language-oriented or machine-oriented
increments.
Display source program text surrounding the currently executing statement.
Define names for Inspect command strings.
Direct Inspect to suspend program execution and perform a specified action
whenever a certain code location is reached, or whenever a certain data item is
manipulated.
Save a copy of your process environment image in a disk save file.
You must specify the FORTRAN SYMBOLS compiler directive when you compile your
program if you want to use high-level Inspect.
Low-Level Inspect
Using Inspect in low-level mode is very similar to using the Debug program. Lowlevel
Inspect offers the following additional features compared to the Debug program:
Recognition of source-language procedure names
Display in ICODE for machine instructions
Low-level Inspect enables you to display and modify registers. You do not need symbol
information to use low-level Inspect.
When Inspect encounters a program unit that was compiled without the SYMBOLS
directive, it automatically enters low-level mode. You can also place Inspect in lowlevel
mode by using the Inspect LOW command.
When you use low-level Inspect, you can use features of high-level Inspect that do not
require symbols. These enable you to:
Note. Unlike FORTRAN, Inspect does not allow embedded spaces in identifier names. You
must enter each identifier name as a consecutive string of nonblank characters.