User manual

UM0036 Basic debugging features
Doc ID 7705 Rev 11 185/385
If a breakpoint is set at the beginning of function f, such that:
The breakpoint condition is set as i<0
The breakpoint counter is set to 3
The counter will not be decremented until the condition becomes TRUE.
The first time that i<0 is TRUE, the counter will be decremented from 3 to 2
The third time that i<0 is TRUE, the counter is decremented from 1 to 0, therefore the
counter returns TRUE and the breakpoint is activated at the following iteration.
The value Counter = 3 is taken to mean 'ignore condition =TRUE for 3 iterations'.
In the example given, the executable will stop on the fourth pass in which the argument (i) is
negative.
Argument values:
f(1);
f(2);
f(3);
f(4);
f(-1);
f(-2);
f(-3);
f(-4); *** first stop is here ***
f(-5)
5.8.4 Showing breakpoints
Right-click on an instruction breakpoint listed in this window to open the Instruction
Breakpoint contextual menu.
Figure 130. Instructions breakpoints contextual menu
The contextual menu command Show Breakpoints will bring up an Editor window showing
the section of source file containing the selected breakpoint. This will also appear in the
Disassembler window (and in the Disassembler window alone if the source contains no
debug information).