This is not a duplicate of How to come out of while loop during debugging. See the comment on this answer https://stackoverflow.com/a/8107702/1391924 by the author of this q
Select the line that's out of the loop and press ctrl + r (Run to line):