User manual

UM0036 STM8 C tutorial
Doc ID 7705 Rev 11 353/385
Figure 284. Watch window
6. In the Editor window, click to place the cursor on line 123.
7. Click on Debug>Run To Cursor.
8. Select View>Memory to display the Memory window.
9. In the Memory window, set the start address to the address of the currentState
variable (this address is displayed in the Watch window as shown above). Note that the
display format is set to double-word — this is controlled by right-clicking the mouse in
the Memory window and selecting Format>DWord from the contextual menu that
appears.
10. Select Debug>Step Over to step over the current line of code.
11. In the Watch window and Memory window you can see the values that have just
changed, they are displayed in bold type.