Javier Novoa C. Javier Novoa C. - 4 months ago 44
Python Question

ipdb debugger, step out of cycle

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

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


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