Display Variable Values with Text Hover
Text Hover is an additional method to display the value of variables while debugging a program. When the mouse pointer hovers over a program variable within the source listing, a small hover window appears containing the variable name and its associated value. If the mouse pointer happens to hover over something other than a program variable (e.g. text or white space), no window displays. If the content of the hover window extends beyond the size of the hover window, the pointer can be placed within the window to reveal a scroll bar.
To enable or disable the Text Hover feature
- From the Window menu, select Preferences>BMC>Code Debug.
- Select or clear the Display a variable's value when hovering over a variable check box. Enabling or disabling hover takes effect immediately. By default, Text Hover is enabled.
Unlike within the Variable view, the value of a variable cannot be modified using the Text Hover feature. The Variables view must be used to change the value of a variable. In the example below, the value of the variable WORK-REC, which is 234, displays in a hover window just below the variable in the listing.
When hovering over an array, the hover window indicates the variable is an array and shows its dimensions. To view the contents of arrays, use the Variables view.