Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-193
SET TRACE
SET TRACE
The SET TRACE command controls the dynamic trace facility of Inspect. When
dynamic tracing is activated, Inspect displays trace information concerning the current
program as it executes. SET TRACE enables you to activate this facility and control
the level of tracing.
trace-level
specifies the level of dynamic tracing you want to set.
ARGUMENT
specifies dynamic tracing of arguments. When tracing of arguments is on, Inspect
displays a trace message each time execution control passes to a scope unit as
the result of a call to the scope unit. The trace message displays the arguments (if
any) specified in the call. In general, the ARGUMENT option is used with the
SCOPE option, however, SET TRACE ARGUMENTS is inactive when SET
TRACE SCOPES is off. SET TRACE ARGUMENT is resource-intensive; it should
be used over a limited execution range in your program.
SCOPE
specifies dynamic tracing of scope units. When scope tracing is on, Inspect
displays a trace message each time execution control passes from one scope unit
to another.
STATEMENT
specifies dynamic tracing of statements. When statement tracing is on, Inspect
displays a trace message each time a statement executes. Inspect uses the format
specified by SET LOCATION FORMAT to display the location of the statement.
Default Value
The default INSPLOCL file sets the dynamic trace controls as follows:
Note. The SET TRACE command is invalid for Pathway requester programs.
SET TRACE trace-level [=] { ON | OFF }
trace-level: one of
ARGUMENT[S] SCOPE[S] STATEMENT[S]
SET TRACE ARGUMENTS = OFF
SET TRACE SCOPES = OFF
SET TRACE STATEMENTS = OFF