User manual
STM8 C tutorial UM0036
354/385 Doc ID 7705 Rev 11
Figure 285. Memory and Watch windows
12. In the Watch window right-click to display the Watch window contextual menu, select
Display All>Decimal to see the decimal value of currentState, this should
correspond to the value displayed in the Memory window.
13. Select Debug>Step Over to step to line 133.
14. In the Editor window highlight nbOfTransitions with the cursor and use the left
mouse button to drag and drop it to the Watch window. It now appears in the Watch
window as shown below:
Figure 286. Watch window
15. Remove all breakpoints by right clicking in the Instruction breakpoints window and
selecting Remove All Breakpoints.
16. Click on Debug>Continue to continue execution of the application. The Status bar
should indicate the debugger status as Running.
17. After a period of 5 to 10 seconds stop the program by selecting Debug>Stop Program.
The status bar should indicate the debugger status as Stopped.
18. Use the Watch window to view the values of the nbOfTransitions and
currentState variables. The value of nbOfTransitions should have increased
and the value of currentState may have changed.