ipdb debugger, step out of cycle

Javier Novoa C. picture Javier Novoa C. · Jul 3, 2015 · Viewed 13.5k times · Source

Is there a command to step out of cycles (say, for or while) while debugging on ipdb without having to use breakpoints out of them?

I use the until command to step out of list comprehensions, but don't know how could I do a similar thing, if possible, of entire loop blocks.

Answer

amstree picture amstree · Aug 19, 2015

You can use j <line number> (jump) to go to another line. for example, j 28 to go to line 28.