User manual
STM8 C tutorial UM0036
344/385 Doc ID 7705 Rev 11
12.3 Start debugging
In this lesson you will learn how to start a debugging session and run the application. Here,
you will:
● Start the debugging session
● Run and stop the application
● Step through the application
Note: If you are already familiar with these basic features, feel free to go to the next lesson,
Instruction breakpoints.
12.3.1 Start the debugging session
Select the debug Instrument
You must select a debug instrument before you can start debugging. For this part of the
tutorial we use the STice (you should select your own tool).
1. From the main menu bar, select Debug Instrument>Target Settings.
2. Select STice from the Debug Instrument Selection list box.
3. Click on OK.
Figure 272. Select the debug instrument
Start the debugging session
1. From the main menu bar, select Debug>Start Debugging.
2. Confirm the debug instrument by clicking OK in the Target Selection pop-up window.
3. STVD restores the debug context. The MCU configuration window may open at this
point, simply click OK to close it. We will learn more about this feature later.