Inspect Manual

Inspect Concepts
Inspect Manual429164-006
2-15
Expressions
knowing the number of instances. This example illustrates the difference between
relative and absolute instances:
The number in the leftmost columns is the scope ordinal. Scope 0 is always the most
recent scope, or the current execution scope. Its caller is scope ordinal 1; the caller of
scope 1 is scope ordinal 2 and so on. Scope ordinals number all active scopes; scope
instances number all active instances of the same scope.
In the previous example, A at statement 42 is relative instance 0, A at 101 is relative
instance -1, A at statement 4 is relative instance -2 and A at statement 78 is relative
instance -3. Alternatively, A at statement 78 can be referred to as absolute instance 1,
A at statement 4 as absolute instance 2, A at statement 101 as absolute instance 3
and A at statement 42 as absolute instance 4.
Expressions
An Inspect expression is a list of operands and operators which, when evaluated,
result in a number or string. The operators you can use are based on the source
language of the program you're debugging.
-PROGRAM-TRACE
Num Lang Location
0 TAL #A.#42
1 TAL #B.#57
2 TAL #A.#101
3 TAL #A.#4
4 TAL #C.#67
5 TAL #B.#49
6 TAL #A.#78
7 TAL #M.#3
Scope
Ordinal
Scope
Name
Line
Number
Relative
Instance
Absolute
Instance
0A4204
1B5702
2 A 101 -1 3
3A4-22
4C6701
5B49-11
6A78-31
7M301
Note. You can specify instances for active scope units only. In addition, an instance must
already exist—that is, you cannot refer to the tenth instance of a local variable when only eight
activations of its parent scope unit are in the call history.
Note. Inspect does not permit function calls as operands