Variables and the Variables View
Variable names, types, and values can be viewed and edited from the Variables view during a debug session. Since variables are tied to a stack frame, a stack frame item must be selected in the Debug view in order for Xpediter/Eclipse display variables in the Variables view. The variables in this view are updated when execution is suspended. Within the Variables view, Xpediter/Eclipse displays the variables of the current line of execution along with any variables from the previously executed line.
To change the value of a variable
Do either of the following:
- In the Variable view's Value column, select the value to be changed and type over it with the new value.
- In the Variable view's Value column, right-click the value and select Change Value. The Set Value dialog box appears. Enter the new value and click OK.
To display hexadecimal values
In the Variables view, click and select Xpediter>Display Hex Values.
To show fully qualified variable names
In the Variables view, click and select Xpediter>Show Qualified Variable Names. Repeat to show only the variable name, if desired.
To view and update variables in vertical hexadecimal format
In the Variables view, right-click a variable and select Vertical Hex Display. The Vertical Hex Display dialog box appears containing the hexadecimal value for the selected variable.
To update the variable in vertical hex display
Overtype the existing EBCDIC value or hexadecimal value with the new value. The corresponding hexadecimal or EBCDIC value changes automatically to match. For example, if the EBCDIC value of 2 is manually changed to a 3, the corresponding hexadecimal value changes to X’F3’. When the hexadecimal value is manually changed, Xpediter/Eclipse validates the newly entered characters as to whether they are legal hexadecimal characters.
The Prev button performs an undo action for each displayed character change made within the Vertical Hex Display dialog box. When a character is changed, the Prev button becomes active. The Prev button stays active until all changes are undone back to the last saved instance of the variable display.
Vertical Hex Display also supports Unicode (National) values. Vertical Hex Display data may be changed on any of the three lines, character, zone and digits. In the following, the hex A in the digits portion of the “j” character was over-typed with a hex B, resulting in an automatic display change to the character "k". However, no actual value changes take place until the OK button is selected, only the display of the character changes.
The Delete and Backspace keys may also be used. For example, when the cursor is positioned to the right of the character “j” and the Backspace key pressed, this results in a shift to the left of all following characters with the last character being replaced by a space (0x20).
A further example is when the cursor is positioned either immediately to the right of the character “i” or the left of the character “j” and the Delete key is pressed. In this case, the “j” is deleted and the position replaced by a space (0x20). Pressing Delete or Backspace on the zone (digits) portion of the hex display, the character is replaced by 0x00. The
Insert key may used to set insert mode on. With Insert mode set, all characters entered cause a 0x20 or 0x’00’ at the end of the data to be shifted out and the character typed inserted at the cursor position.
scroll index