The different elements in the window is explained in detail in The User Interface. On the empty line, enter the name of the variable that should be watched. Pressing Ctrl Space opens a context menu showing the variables local to the current scope, allowing these to be added quickly. More information on scope can be found in Variables and Scope.
In this example, the variable is point
and
distance
. Press the Enter key and the watch is being added.
Since the variable contains other variables, these are also added. The result is shown in
Figure 1.
point
to the
Live Watch
The Live Watch view can only display some data types. This is explained in Datatypes.
As seen in Figure 1, all the variables added has no value. This is because the watch was added when the execution was stopped, which means that there have been no writes to the memory segment where the variables are stored.
Press the Continue(F5) button to continue the
program. It should do one iteration of the while
loop and break again. The
values in the Live Watch should now be updated to the values shown in Figure 2.
point
After One Iteration
The variables shown in Figure 2 is now in bold. Bold is used to mark variables that are in the scope where the program is currently breaked.