You can write code that checks your loop counter and then calls
Debugger.Break(). Or you can simply set a conditional breakpoint in the
debugger, that checks the loop counter and only breaks at a specific line
when the counter matches the condition you specify.
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.