Author Topic: How to debug the iterations of a code ?  (Read 2935 times)

Offline R1S8K

  • Multiple posting newcomer
  • *
  • Posts: 23
How to debug the iterations of a code ?
« on: July 20, 2022, 10:39:23 pm »
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.


Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1644
Re: How to debug the iterations of a code ?
« Reply #1 on: July 21, 2022, 02:15:01 pm »
The loop may be optimized out or unrolled, have you disabled optimizations when compiling?