I want to use a breakpoint when a certain code (function) is executed for a certain number of times. The problem is that my easy code is optimalized out and the breakpoint is never reached. How can i break a code after it excecuted a certain number of times
static int count = 0;
static int test = 0;
if (count == 5) {
//Break here before getting stuck
count++;
test++;
count--;
};