Debugging a GRIP Program


Examine Variables/Entities

Allows you to display the values of variables and/or entities in a specified program. When you choose this option, the system displays the following options:

PROG_NAME allows you to enter the name of the subprogram in which you wish to examine variables. If no name is entered, the system defaults to the current subprogram.

VAR_NAME allows you to enter the name of the variables/objects you wish to examine. Based on the type of variable/object specified, the system sends the following information to the listing device:

  1. Variable/Object name by itself:

  2. Variable/Object name with an index: If a variable/object is not an array type, or the input index is out of range, the system displays an error message. When examining an index of a variable/object there should only be one open and one closed parenthesis, and 0, 1, or 2 commas, depending on the variable/entity dimension. The index values must be constants.

  3. Variable/Entity name with a subrange: If a variable/object is not an array type, or the input subrange is out of range, the system displays an error message. When examining a subrange of a variable/object, there should only be one open and one closed parenthesis, and double periods (..) between the lower and upper bounds, as well as 0, 2, or 4 commas depending on the variable/object dimension. The lower and upper bound values must be constants.