Inspect Manual
Inspect Concepts
Inspect Manual—429164-006
2-7
Debugging Multiple Programs
PATHWAY requester programs can be started by entering one of these PATHCOM
commands:
START TERM starts the PATHWAY requester program associated with a given
terminal by an earlier SET TERM command.
RUN PROGRAM starts a given PATHWAY requester program at the PATHCOM
command terminal.
Inspect enables you to debug PATHWAY requester programs compiled with the
SCREEN COBOL directive SYMBOLS.
Debugging Multiple Programs
Inspect enables you to debug more than one program in a single Inspect session; in
fact, you can debug several programs concurrently. When you debug multiple
programs, Inspect retains a list of the programs that you are debugging. This list is
called the program list.
Although you can debug multiple programs concurrently, most Inspect commands
affect only one program: the current program. Whenever a debug event occurs in one
of the programs you're debugging, Inspect automatically makes it the current program.
In addition, you can choose the current program using the SELECT PROGRAM
command.
Execution States of a Program
Inspect separates the execution of a program into four distinct phases, called
execution states. These states describe the current activity of a program, and
determine the availability and significance of certain Inspect commands. Because
save files are not executable, the execution state of a save file cannot change. A save
file merely records the execution state of the process that it is an image of.
All other program types can assume one of three possible Inspect execution states:
Run State—the program is executing.
Hold State—the program is temporarily suspended, but can resume execution
again.
Stop State—the program has completed execution, whether normally or
abnormally.
Gone State—the program has stopped executing, but has not been cleared.
Several Inspect commands produce relevant information only when a program is in the
hold or stop state, while other commands are valid only when a program is in the hold
state.