Friday, October 30, 2015

What is INSPECT?

Inspect is an interactive symbolic debugger that enables you to isolate program bugs quickly.

Few High-Level Inspect Commands which are specific to 100 coded object files are in detail below.

IDENTIFIER
Displays information about the internal characteristics of a given data location or of all data locations in one or more scope units. The IDENTIFIER command is a synonym for the INFO IDENTIFIER command.

INFO IDENTIFIER
The INFO IDENTIFIER command displays information about the internal characteristics of a given data location or of all data locations in one or more scope units, including native symbols.

Usage Considerations
  • The INFO IDENTIFIER command can be used for active and for inactive scope units in processes, PATHWAY servers, and save files. In a PATHWAY requester program, the INFO IDENTIFIER command can be used only for active scope units.
  • Types of Entities - The form of the output produced by INFO IDENTIFIER for a given identifier depends on the type of entity the identifier denotes.
  • INFO IDENTIFIER Presentation for Variables - A typical program contains more identifiers for variables than for any other entity class.
MATCH
The MATCH command searches for scope-unit names or other identifiers in the current program.

Default Values
  • If the MATCH IDENTIFIER command is entered with only one pattern, Inspect will display only the matching symbols, and the scopes they were found in.
  • If the VERBOSE clause is omitted, scope names are displayed only if they have a matching pattern.
Usage Considerations

  • Matching Uppercase and Lowercase Letters - The MATCH command does not distinguish between uppercase and lowercase letters in the pattern unless the current language is C.
  • Alias Restrictions with the MATCH command - Aliases are not be expanded in the pattern with the MATCH IDENTIFIER or the MATCH SCOPE commands.
  • Matching Scopes With a Leading “#” - You must include a “#” to match scopes which have a leading “#”. For example, to match the scope, “#global”, enter: MATCH SCOPE ##global

No comments: