check for value during debugging...

  • Thread starter Thread starter VMI
  • Start date Start date
V

VMI

I'm trying to debug a For loop but I don't want the compiler to break
everytime it enters the loop. Is it possible to tell the compiler to break
when a condition is met? In other words, if my loop says for (int
i=0;i<2000;i++) { ... }, I want the compiler to break when i = 1400. Does
the compiler have this capability?

Thanks.
 
I just learned that I can change the value of a variable dynamically while
the debugger's running.

VMI
 
You can set your breakpoint so it only breaks when a condition is met.
You can set the condition by modifying the properties of your break point.
To do this right click on the breakpoint and select BreakPoint Properties. On
the file tab there is a button "Condition" put your condition in there.

Regards,

Deepak
[I Code, therefore I am]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top