News:

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

Main Menu

debuging loops in CB

Started by black iris, August 20, 2012, 08:51:39 AM

Previous topic - Next topic

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?
??? ???

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