User manual
STM8 C tutorial UM0036
346/385 Doc ID 7705 Rev 11
1. If it is not already open, double-click on timer.c to open the source file in an Editor
window.
2. Scroll to line 242 of the source code (timer.c) and click to place your cursor at the
beginning of this line. You may use the Go to function of the contextual menu in the
editor (right click) in order to navigate easily.
3. Select Debug>Run to Cursor. The application executes up to line 242 of the code.
The Program Counter (yellow arrow and highlighting) shows the next instruction to be
executed in the source code and the corresponding position in the disassembled code.
Figure 274. Application is stopped at the cursor position
12.3.3 Step through the application
Stepping instructions allow you to execute the application one instruction at a time and to
step into or over functions as required. For example, we are currently on line 242 of the
source code.