User forums > Using Code::Blocks
debuging loops in CB
(1/1)
black iris:
can i start debuging after n iteration of the loop?
??? ???
chice:
a method that applies to all conditions:
for(int i = 0; i < 10000; i++)
{
if( i == 100)
{
int _tmp = 1; // set breakpoint here, or use DebugBreak in Windows
}
}
Jenna:
--- Quote from: black iris on August 20, 2012, 08:51:39 am ---can i start debuging after n iteration of the loop?
??? ???
--- End quote ---
Yes, just create a breakpoint, right-click on it and chose edit breakpoint.
Now you can set a break condition like loop-variable >= n or chose "Ignore count before break" and set it to n .
black iris:
thanks, both solutions were helpful
Navigation
[0] Message Index
Go to full version