Variable Watch tab

The Variable Watch tab of the Script Output window allows you to see the values of Opus variables during a publication preview. This can be useful when debugging a publication to discover the values of variables without having to insert them into a text object.

The Watch list is automatically saved and restored whenever the Console is closed and opened.

To work with the Watch List right click anywhere on the pane and a context menu will appear.

Adding a variable to the Watch List

  1. If it is not already open, show the Script Console window by selecting the option from the main editor View menu, or pressing Ctrl+Shift+O.

  2. Select the Variable Watch tab from the list of tabs at the bottom of the Console..

  3. Right click anywhere on the Watch pane and a context menu will appear.

  4. Select Add Watch.

  5. A drop down combo box will appear in the Variable column.

  6. Click the arrow at the right of the combo box to display a list of the available variables.

  7. Select the variable from the list by clicking it.

Note:
If you add an Page variables to the watch list they will only update if the preview is started from that page (via the Preview Page menu command or F5 shortcut).

Changing a variable in the Watch List

  1. If it is not already open, show the Script Console window by selecting the option from the main editor View menu, or pressing Ctrl+Shift+O.

  2. Select the Variable Watch tab from the list of tabs at the bottom of the Console.

  3. Left click on the variable name to be changed and a drop down combo box will appear in the Variable column.

  4. Click the arrow at the right of the combo box to display a list of the available variables.

  5. Select the variable from the list by clicking it.

  6. The selected watch item will be changed to the new variable.

Removing a variable from the Watch List

  1. If it is not already open, show the Script Console window by selecting the option from the main editor View menu, or pressing Ctrl+Shift+O.

  2. Select the Variable Watch tab from the list of tabs at the bottom of the Console..

  3. Right click on the variable item to be removed and a context menu will appear.

  4. Select Delete Watch.

  5. The selected watch item will be removed.

Removing all variables from the Watch List

  1. If it is not already open, show the Script Console window by selecting the option from the main editor View menu, or pressing Ctrl+Shift+O.

  2. Select the Variable Watch tab from the list of tabs at the bottom of the Console..

  3. Right click anywhere on the Watch pane and a context menu will appear.

  4. Select Remove All.

  5. All variables will be removed from the watch list.

Note:
You cannot watch variables declared in script via this window. Either declare the variables as Opus publication variables and work with those in your script or use the Debug.trace() function to output information to the normal script output pane.

Related Topics:

Publication Variables