Inspect Manual
High-Level Inspect Commands
Inspect Manual—429164-006
6-166
Usage Considerations for Privileged Users
In some debugging situations, the differences between Inspect and Debug may be
important. Inspect runs as an application process while Debug actually runs as
part of the process being debugged. As a result, Inspect may affect the state of
the system more than Debug. Debug, on the other hand, makes use of the
program's stack, which can affect program behavior.
If the breakpoint has attributes which are unique to Debug, such as conditional, the
breakpoint is listed as either type “Code DEBUG” or type “Data DEBUG”. The text
field of such breakpoints lists the breakpoint's attributes. These tokens may be
listed:
Usage Considerations for Privileged Users
Care must be exercised when returning control to Inspect when Debug has been
used to set “all process” breakpoints in System Code and System Library spaces.
A deadlock can occur if Inspect inadvertently calls the procedure in which the
breakpoint is set.
Privileged breakpoints are added to the Inspect breakpoint list only if PRIV MODE
is set ON.
Debug does not retain any state information between invocations from Inspect. As
a result, privileged Debug mode is reset when control is returned to Inspect; the
Debug PRV command must be reissued after re-entering Debug. Inspect on the
other hand does retain state information when switching to and from Debug.
Usage Consideration for Accelerated Programs
When debugging programs on a TNS/R system, Debug can be used to debug at
the TNS/R machine level.
Related Commands
INFO on page 6-104
LIST BREAKPOINT on page 6-131
SELECT LANGUAGE
The SELECT LANGUAGE command changes the current source language. The
current source language affects the acceptable syntax of language-dependent entities
such as code locations, data locations, and expressions.
Inspect provides the SELECT LANGUAGE command to aid in debugging a program
compiled from more than one source language. SELECT LANGUAGE enables you to
CONDITIONAL - The breakpoint is Debug conditional
ALL PROCESSES - The breakpoint applies to all processes
PRIV - The breakpoint was set by PRIV Debug