User manual

UM0036 STM8 C tutorial
Doc ID 7705 Rev 11 349/385
Figure 277. Instruction breakpoints
5. Select Debug>Continue to run the application from line 107 to the breakpoint.
6. Check the nbOfTransitions value in the pop-up. The variable nbOfTransitions
=0.
12.4.2 Set a counter on an instruction breakpoint
1. In the Instruction Breakpoints window double-click on the Counter field and enter
50.
Figure 278. Setting counter
2. Click on Debug>Continue.
3. When the application stops, check the new value of the nbOfTransitions variable.
The program has stopped at the breakpoint after 50 passes (1...50).