Watch Variables


Xpediter/Eclipse supports the use of watch variables, including setting a watch on a variable without first having to find the variable reference. Watch variables listed in the Variables view have the icon_watch_variable_glasses.gif icon displayed next to them. Watch variables have all the same functionality as automatic variables. Watch variables remain within the Variables view for the length of your debug session. For a CICS debug session, watch variables added from a program remain for each execution of that program for that debug session regardless from what task number or 3270 terminal/emulator the transaction executed.

To assign watch variables

  1. Do one of the following:

    • In the Variables view, right-click the variable name and select Add Watch.
    • In the editor, right-click on a line of source and then select Add Watch Variables or press ALT-SHIFT-V.

    The Add Watch Variables dialog box appears containing a list of all the variable names contained on the selected line of source.

  2. Do one of the following to specify the variables to watch:

    • Select On current line and then select the check boxes for the variables to be assigned as watch variables and clear any variables that are not to be watched. This option is disabled if no variables exist on the current line.
    • Select By name. The list refreshes to show every variable in the program. Specify variables to be watched by selecting the check boxes or by first entering a filter in the By name field. The asterisk (*) can be used to wildcard multiple characters. The question mark (?) can be used to wildcard a single character. Any combination of the wildcard characters is supported.
  3. Click OK.

To remove the watch status of a variable

From the Variables view, right-click the desired watch variable and select Remove Watch. The variable's watch status for that variable is removed from the Variables view. The variable remains listed in the Variables view as an automatic variable.


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*