Thanks for the "until" command in the python debugger

published Jun 28, 2013 03:05   by admin ( last modified Jun 28, 2013 03:05 )

Stepped into a 3000 iteration loop today while debugging python code. How do you get out of that? Turns out there is an "until" command in the debugger that will type next for you until it's about to hit a line further down in the program. Or more precisely:

 

The until command is like next, except it explicitly continues until execution reaches a line in the same function with a line number higher than the current value


Read more: Link - pdb – Interactive Debugger — Python Module of the Week