Viewing Variable Values

You can view the changing values of variables in the Variables window. To open, select Window>Debugging>Variables. For more information on this window, see Watch Local Variable Values Change.

Click the “Debug Project” icon . The code will execute and stop at the breakpoint. pot_value information will be shown in the Variables window.

Figure 1. Variables Window - First Breakpoint Halt

Turn the pot on the board so the value will change. Click the “Continue” icon . The code will execute and stop at the breakpoint again. View the Variables window to see that the value has changed (red text).

Figure 2. Variables Window - Second Breakpoint Halt