3. Watch View


This is the area, marked with number ‘3’ in the picture above. It allows you to have an additional control over your program via “watching” how your variables behave in your script.

The watch area consists of three columns:

Watch Name – this column shows the name of the item/variable that is being watched.

Type – this column shows the type of the corresponding item/variable (like integer, string, float, etc.).

Value – this column shows the current value of the corresponding item/variable.

NOTE: If the script has been executed up to a certain line only, the entry will represent the value of the item until this step.

Right-clicking on any line in this area will invoke the following context menu:

          If you select Add or Edit, the Watch Properties dialog will open. Another way for invoking this dialog is by pressing <Ctrl> + <F7>. In the Expression field enter the name of the item you wish to watch. Select the type of the variable by pressing one of the radio buttons below. If you choose Auto, the type of the variable will be obtained automatically from the script, if possible. If you wish to transform the result in another value type, you can select a type, different from the default type of your variable, as long as the two types are compatible.

          Checking the Enabled box will add a check-box to the corresponding row in the Watch List. The idea of this check-box is to give the user the ability to control which variables should be “watched,” and which should not be “watched” at a time. Thus, if an item is not checked, its value in the Value column will not be changed until the box next to it is checked back.

          The Delete and the Clear commands from the context menu are self-explanatory.

NOTE: The Watch area is only visible when the Watch box in the toolbar is checked.