User manual
STM8 C tutorial UM0036
352/385 Doc ID 7705 Rev 11
Figure 282. QuickWatch window
7. In the Editor window place the cursor over the count variable, a pop-up should appear
indicating that its value is 3.
12.5.3 View variables using the Watch, QuickWatch and Memory windows
In this procedure you will learn how to use the Watch window, QuickWatch window and
Memory window to inspect variables.
The Watch window displays the current value of selected program variables when the
executable is stopped.
The QuickWatch window provides rapid contextual access to the most commonly used
Watch functions. Values are easily transferred from the QuickWatch window to the Watch
window.
The Memory window provides views of selected areas of memory contents.
1. Set a breakpoint at the beginning of the trapISR function (line 107).
2. Click on Debug>Continue to continue execution of the application up to this
breakpoint.
3. Click to place the cursor on the currentState variable, select Edit>QuickWatch to
open the QuickWatch window.
Figure 283. QuickWatch window
4. In the QuickWatch window select Standard from the drop down menu and click on the
Add Watch button.
5. The QuickWatch window closes and the Watch window appears with currentState
displayed.