Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-215
Limitation of the STEP Command
Limitation of the STEP Command
Inspect does not support stepping execution from the throw statement to the catch
statement. When issuing the STEP command on the throw statement, the program
execution resumes. To suspend the program execution when an exception is thrown,
set a breakpoint on a statement in the appropriate catch block.
For example,
1. void func (int x) {
2. try {
3. if (x == 0)
4. throw "exception";
5. cout << x;
6. }
7. catch(...) {
8. cout << "In Catch block";
9. }
10. }
If you issue the STEP command on line 4 of the above program, the program
execution resumes. To suspend the program execution, set a breakpoint at line 8.
Related Commands
BREAK on page 6-19
CLEAR on page 6-27
RESUME on page 6-158
STOP
The STOP command stops one or more programs, removing the stopped programs
from the program list.
If the program is a save file, the STOP command also closes the save file. If the
program is a process or PATHWAY server, and if it is the only program being
debugged, the STOP command terminates the Inspect session after stopping the
program.
Note. The STOP command is invalid for PATHWAY requester programs; you must use
PATHCOM to stop them.