Inspect Manual

Inspect Concepts
Inspect Manual429164-006
2-9
Breakpoints and Break Events
All these actions cause a debug event to occur:
You enter the DEBUG or RUND command from TACL.
You enter the START TERM command from PATHCOM for a terminal that you've
configured with a SET TERM INSPECT ON command.
You enter an Inspect command from PATHCOM.
You enter a HOLD or ADD PROGRAM command from Inspect.
Program execution (or termination) activates a breakpoint, and the breakpoint
triggers a break event.
A TACL routine or macro calls the built-in TACL function #DEBUGPROCESS
A process calls the Debug system procedure.
A process starts another process by calling the NEWPROCESS,
NEWPROCESSNOWAIT, PROCESS_CREATE_, or PROCESS_LAUNCH_
system procedure with the debug bit set.
A process encounters a trap for which it does not have a trap handler.
A process attempts to call an unresolved external routine.
After Inspect suspends program execution, it displays the status message and then
prompts you for a command. Inspect might report incorrect information for programs
that have been optimized. Therefore, if the current location in the program has been
optimized in such a way that incorrect information might result, Inspect displays this
warning message for debug events:
Breakpoints and Break Events
A breakpoint is a location in your program where you tell Inspect to suspend execution
so you can examine the program's state and perhaps modify its variables. Inspect
breakpoints can consist of three parts:
Break location—where the break event should occur
Break condition—under what conditions the break event should occur
Break action—what to do after the break event occurs
Break duration—how long the break exists
The condition and action parts are optional features that extend the capabilities of
simple breakpoints.
A break event occurs when program execution reaches a breakpoint, provided that the
conditions (if any) limiting that breakpoint are fulfilled. Once the break event occurs,
** Inspect warning 198 ** Results might be unexpected due to optimization