User forums > Using Code::Blocks

How to debug the iterations of a code ?

(1/1)

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?

Navigation

[0] Message Index

Go to full version