User manual
STM8 C tutorial UM0036
358/385 Doc ID 7705 Rev 11
Figure 289. Saving trace contents
The last 100 records are saved to file where they can be read using a text editor.
12.7.2 Use read/write on-the-fly
When the Read/write on the fly option is selected, the Watch window and Memory window
are continuously refreshed at one-second intervals and any changing values are displayed
in bold type.
This procedure describes how to enable the read/write on the fly option and how it may be
used to watch variable values being read or written to while your program is running on the
emulator. Here, we also show how our program has a bug which we will use later to
demonstrate advanced breakpoints.
1. Use the View menu to open the Watch window and Memory window if they are not
already displayed.
2. In both the Watch and Memory windows, right-click to open the contextual menu and
enable the Read/Write on the Fly option.
3. When the Read/Write on the Fly option is enabled, the window’s background changes
to yellow.
4. Select Debug>Run from the main menu.
5. You can now see memory entries in the Watch window and variable values in the
Memory windows being updated periodically (values are shown in bold when updated).