Author Topic: debuging loops in CB  (Read 3576 times)

Offline black iris

  • Single posting newcomer
  • *
  • Posts: 2
debuging loops in CB
« on: August 20, 2012, 08:51:39 am »
can i start debuging after n iteration of the loop?
 ??? ???

Offline chice

  • Single posting newcomer
  • *
  • Posts: 6
Re: debuging loops in CB
« Reply #1 on: August 20, 2012, 09:09:21 am »
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
     }
}

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: debuging loops in CB
« Reply #2 on: August 20, 2012, 05:02:34 pm »
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 .

Offline black iris

  • Single posting newcomer
  • *
  • Posts: 2
Re: debuging loops in CB
« Reply #3 on: August 20, 2012, 09:15:21 pm »
thanks, both solutions were helpful