continue out of a loop in pdb

Paul McGuire ptmcg at austin.rr._bogus_.com
Sun May 14 14:32:15 EDT 2006


"Gary Wessle" <phddas at yahoo.com> wrote in message
news:87mzdkwke3.fsf at localhost.localdomain...
> Hi
>
> using the debugger, I happen to be on a line inside a loop, after
> looping few times with "n" and wanting to get out of the loop to the
> next line, I set a break point on a line after the loop structure and
> hit c, that does not continue out of the loop and stop at the break
> line, how is it down, I read the ref docs on pdb but could not figure
> it out.
>
> thanks

This is exactly how I do this operation using pdb, and it works for me, so
you are on the right track.  Is it possible that something inside the loop
is raising an exception, thereby jumping past your breakpoint? Try putting
the loop inside a try-except.

-- Paul





More information about the Python-list mailing list