Javier Novoa C. Javier Novoa C. - 1 year ago 111
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.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download