Inspect Manual

Debugging Processes and Save Files
Inspect Manual429164-006
4-11
Guidelines for Debugging a Process
Pressing the BREAK Key
Pressing the BREAK key on the Inspect command terminal has various results,
depending on the status of the session at the moment you press BREAK:
If the current program is in the run state, pressing the BREAK key causes Inspect
to issue a prompt. Inspect does not, however, place the current program in the
hold state: you must enter a HOLD command.
If you have paused Inspect (using the high-level PAUSE command), pressing the
BREAK key causes Inspect to issue a prompt.
If Inspect has prompted you and is awaiting a command, pressing the BREAK key
causes the command interpreter to issue a prompt. In this case, Inspect is not
paused. Consequently, Inspect and the command interpreter will compete for
control of the terminal until you enter a command interpreter PAUSE command.
If Inspect is displaying information, pressing the BREAK key causes Inspect to stop
the display and issue a prompt.
If a process running on the Inspect command terminal has ownership of the
BREAK key, pressing BREAK has whatever effect the process assigns to it. If this
process stops while Inspect is suspended by a PAUSE command, the BREAK key
cannot be used to activate Inspect.
You can activate the Inspect process by forcing a debug event. Enter the
command interpreter command DEBUG, giving the process that owns BREAK as
the process to debug, or enter the command interpreter command RUND to start
debugging another process. Once Inspect regains controls of the terminal, use the
TERM command to change the Inspect command terminal to avoid further BREAK
problems.
Freeing the Inspect Command Terminal
If you need to communicate with some process other than Inspect or the process you
are debugging, you can free the Inspect command terminal temporarily using the low-
level PAUSE command. Follow these steps:
1. Enter the LOW command to go into low-level Inspect (if you are not there already).
2. Enter the PAUSE command:
The pause-time parameter specifies the number of centiseconds (hundredths of a
second) you want Inspect to pause.
3. Press the BREAK key, therefore returning control to the command interpreter.
When you have finished using the command interpreter, enter the command interpreter
PAUSE command and Inspect will again control the terminal. If Inspect has already
_PRG_P pause-time