Javier Novoa C. Javier Novoa C. - 8 days ago 5
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

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

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