Breakpoint problem----howto use it in a loop
-
I got some code contains a loop which execuates for about 20000 times.How can I step into the 10000th execuation?:confused:
-
I got some code contains a loop which execuates for about 20000 times.How can I step into the 10000th execuation?:confused:
> How can I step into the 10000th execuation? Conditional Breakpoints. Open the Breakpoints dialog (Edit-Breakpoints or Alt+F9 in DevStudio 6.0), specify the location (or select a previously marked Breakpoint, which is easier), and then click on Condition... to specify a condition for the Breakpoint. Peace! -=- James.
-
I got some code contains a loop which execuates for about 20000 times.How can I step into the 10000th execuation?:confused:
if (i == 10000)
__asm int 3;It is faster than conditional breakpoints. I vote pro drink :beer:
-
> How can I step into the 10000th execuation? Conditional Breakpoints. Open the Breakpoints dialog (Edit-Breakpoints or Alt+F9 in DevStudio 6.0), specify the location (or select a previously marked Breakpoint, which is easier), and then click on Condition... to specify a condition for the Breakpoint. Peace! -=- James.
Your condition should be something like i == 10000
Todd Smith