Inspect Manual

Inspect Command Overview
Inspect Manual429164-006
3-2
Debugging the Current Program
Pressing BREAK returns you to the Inspect prompt.
If you press the BREAK key when entering a command (even if you are on a
continuation line), Inspect retains the accumulated command list, except for commands
on the line that you were entering. However, Inspect does not interpret the command
list; instead, it prompts for another command. Consequently, if you find that you have
made a mistake in a line, you can use the FC command to correct all but the last input
line of the command list and then reissue it.
Debugging the Current Program
The basic debugging commands that Inspect offers affect only one program: the
current program. Table 3-1 lists the basic debugging commands that fall into three
categories:
Commands that control program execution
Commands that access program information
Commands that simplify program debugging
Caution. A COMMENT (“- -”) command causes Inspect to ignore any commands that follow it
in the command list.
Table 3-1. Commands for Debugging the Current Program (page 1 of 2)
Command Description
Commands that Control Program Execution
BREAK Sets one or more breakpoints in the current program or display
current breakpoints.
CLEAR Clears one or more breakpoints in the current program.
HOLD Suspends the execution of a program on the program list, placing it in
the hold state.
RESUME Reactivates a suspended program, changing its state from hold to
run.
STEP Resumes execution of the current program at the point where it was
last suspended, and then suspends execution after the program has
executed a certain number of units.
STOP Stops one or more programs and removes them from the program list.
Commands that Access Program Information
DISPLAY Formats and displays the value of variety of items, including
constants, expressions, code, and data.
INFO Displays internal information about various entities in the current
program.
MATCH Searches for scope-unit names or other identifiers in the current
program.