Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use breakpoints to step a certain loop

Status
Not open for further replies.

charlemagn

Programmer
Dec 28, 2001
1
CN
I got some codes containing a "while"statement which loops about 20000 times. How can I set the breakpoint to work after it loops certain times? e.g. I want to step into the 10000th execution of the loop.
 
put an if conditional in it

if(count == 1000)
int x = 0; <--- break here



Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top