You can set a condition for a breakpoint within the loop. To do so, right-click on the breakpoint, select "Modify breakpoints", and enter the condition in the "Use condition" field for the breakpoint. Prefix the variable name with a colon, for example:
:counter = 1000
Now execution will halt when the line of the breakpoint is passed and the "counter" variable has a value of 1000.