Inspect Manual
Inspect Concepts
Inspect Manual—429164-006
2-17
Code Locations
label [ FROM source-file ]
specifies the statement following a given label in the source code.
The FROM clause identifies the label by the source file in which it is found;
therefore, Inspect can distinguish between labels that have the same name.
#line-number [ (source-file) ]
specifies the statement starting at a given line number in the source file. If no
statement begins at the specified line number, Inspect issues this warning:
A subsequent line number is assumed: line-num
Inspect then uses the statement starting at lineline-num. If more than one
statement begins on the specified line, Inspect uses the start of the first
statement.
The (source-file) option identifies #line-number by the source file in
which it is found. You need to use this option only if the source code for the
given scope unit is in more than one file.
code-offset
specifies an offset from the code location defined by the preceding options. A
positive offset (+) denotes code following the specified code location; a negative
offset (-) denotes code preceding the specified code location. The amount to offset
is specified by a given number of units. If you omit the unit specifier, Inspect
selects a default unit depending upon the current source language. This default
unit will always be a statement.
Usage Considerations
Using source-file with #line-number
Inspect assumes that the source code for a scope unit is in a single file. When it is
not in a single file, using#line-number alone to identify a code location will not
work if the line number you want isn't in the first file. To direct Inspect to the correct
file, use the source-file option shown in the general syntax.
Optimized Statements
If optimization has removed the code for a statement and Inspect encounters the
statement, Inspect displays the message:
You cannot set a breakpoint for a deleted statement.
**** ERROR 197 **** Location deleted due to optimizations