Inspect Manual

Using Inspect With Pascal
Inspect Manual429164-006
12-4
Examples
Inspect then uses the statement starting at the given line number. If more than one
statement begins on the line you specify, Inspect uses the start of the first
statement.
The STATEMENT code unit and Pascal statements
Inspect recognizes these as statements:
Simple Pascal statements that are not part of a conditional or repetitive
structured statement
Pascal statements in a compound statement (BEGIN...END)
The parts of a conditional or repetitive statement
Using the FROM Clause in a Command List
You can use the FROM clause only once in a command list.
Examples
This example assume this Pascal code fragment:
PROCEDURE a;
...
PROCEDURE b;
...
FUNCTION c : integer;
...
END;
...
END;
...
END;
Here are some code locations:
Code Location Specifies
#A The primary entry point of procedure A.
#A.B The primary entry point of procedure B.
#A.B.C The primary entry point of function C.