You could use a $variable and have it branch after 305 loops and set a break point there.
Set Variable[ $breaker ; 305 ]
Set Variable[ $breaker ; $breaker - 1 ]
If[ $breaker = 0 ]
Put a breakpoint on the "Beep"
You might put an if statement in the loop that checks the counter and pauses the loop at iteration 305.
if loopcounter = 305
Then start the script in the debugger and hit run. Script pauses and you use the debugger to continue one step at a time.
Just remember to pull the pause statement out when you are done.
The other option might be to check the Pause on Error check box in the debugger. If it is an error that is killing the script early, this should show it to you.
That's it. I didn't realize that you could place a Pause command in a script to pause it in the Debugging window then just begin to step through the code. Problem solved, thanks. I realize now that I should have made this thread a question rather than a discussion so you would have received points for the solution. Next time.
BTW it wouldn't have helped to pause on error because the script performs several finds in each loop iteration and it would be pausing every time no matching records were found (error 401).
Happy to be of help. Jason's version is nice in that it only stops the script when the debugger is running. The rest of the time you just get a beep at iteration 305.
Hope you were able to find the problem.