Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: R1S8K on July 20, 2022, 10:39:23 pm

Title: How to debug the iterations of a code ?
Post by: R1S8K 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.

Title: Re: How to debug the iterations of a code ?
Post by: Miguel Gimenez on July 21, 2022, 02:15:01 pm
The loop may be optimized out or unrolled, have you disabled optimizations when compiling?