User manual

UM0036 STM8 C tutorial
Doc ID 7705 Rev 11 347/385
Figure 275. Step over line 242 to line 243
1. Select Debug>Step Over to step over the reset_bug_count_down function. To view
the current line of assembly code to be executed, see the Disassembly window
2. Select Debug>Step Into to step into main_loop.
3. Select Debug>Step Out to step out of init_timer (back to line 244).
12.4 Instruction breakpoints
An instruction breakpoint stops program execution when a specific instruction is reached. If
a condition and/or a counter is set on an instruction breakpoint, program execution is
stopped to evaluate the condition/counter.
In this lesson you will learn how to set instruction breakpoints with counters and conditions.
Here, you will:
Set an instruction breakpoint
Set a counter on an instruction breakpoint
Set a condition on an instruction breakpoint