News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How to debug the iterations of a code ?

Started by R1S8K, July 20, 2022, 10:39:23 PM

Previous topic - Next topic

R1S8K

Hi,

I have a code that uses for loop iterations, so when I debug the code, the debugger runs the debugging mode into the code for only one iteration. So I can't follow how the program works exactly.

For example in my code, it should loop for 1000 times. But the debugger runs only one time.


Miguel Gimenez

The loop may be optimized out or unrolled, have you disabled optimizations when compiling?