Inspect Manual

Debugging PATHWAY Applications
Inspect Manual429164-006
5-9
Ending the Debugging Session
Using the PATHCOM Terminal as the Inspect Terminal
When debugging requester programs, you should use three terminals: one for the
application, one for the PATHCOM command terminal, and one for the Inspect
command terminal. You can, however, debug with only two terminals: one for the
application and one for both the PATHCOM and Inspect command terminals. Simply
specify the PATHCOM command terminal as the parameter to the FILE clause of the
INSPECT TERM, SET TERM INSPECT, or SET TCP INSPECT command. After the
debugging session begins, you can stop PATHCOM and let Inspect assume complete
control of the terminal; follow these steps:
1. Enter the PAUSE command at the Inspect prompt. This command returns terminal
control to PATHCOM.
2. Enter the EXIT command at the PATHCOM prompt. This command stops
PATHCOM and returns control to the command interpreter.
3. Enter the PAUSE command at the command interpreter prompt. This command
pauses the command interpreter and notifies Inspect to start prompting for
commands again.
4. You can skip the first step if you are already at the PATHCOM prompt.
Ending the Debugging Session
You can end the debugging session by entering either the EXIT command or the
RESUME * EXIT command. Neither of these commands alters the PATHWAY
environment, so you should enter PATHCOM and restore PATHWAY to the status it
had before you began debugging. This includes such tasks as stopping the requester
program and deleting or altering the TCP you configured for Inspect debugging.
When you enter the EXIT command, Inspect terminates the Inspect session, but it
leaves the programs that you were debugging in their current states. Consequently,
you should use the EXIT command only after you have cleared all breakpoints in all
programs and resumed execution of any programs in the hold state. Inspect will
prompt you for confirmation if you have any breakpoints set. The RESUME * EXIT
command performs these cleanup tasks for you.
When you enter the RESUME * EXIT command, Inspect clears all breakpoints from all
programs on the program list and resumes execution of any programs in the hold state.
It then terminates the Inspect session.
If you have paused the command interpreter on the Inspect command terminal, you
might have to press the BREAK key to signal the command interpreter that it should
prompt again.