User manual
UM0036 STM8 C tutorial
Doc ID 7705 Rev 11 345/385
Activate a feature
You can enable and disable some debug options. For this session we want to use the Watch
Pop-up feature that allows us to see the current value of a variable in our source file.
1. From the main menu bar, select Tools>Options.
2. Click on the Edit/Debug tab in the Options window.
3. Place a checkmark in the box next to Enable watch pop-up, then click on OK.
Figure 273. Activate the Watch Pop-up feature
RESULT:
The debug session has started. Double-click on timer.c to open the source file in an
Editor window. Scroll to line 75, then hover your cursor over the variable currentState. A
pop-up will appear with the variable’s current value.
12.3.2 Run and stop the application
You can run and stop the application using the commands in the Debug menu. You can use
Debug>Run and Debug>Stop Program to start and stop the execution of your application.
However, to stop the application there are many more accurate ways of controlling where
and when the application stops. For Example: