pdb + unittest

Chris Green cmg at dok.org
Tue Apr 13 11:12:17 EDT 2004


Peter Hansen <peter at engcorp.com> writes:

>
> I'm not entirely clear what you're asking, but generally when
> I need to use pdb with unit tests (or any other time), I simply
> invoke it with "import pdb; pdb.settrace()" and get the prompt
> wherever I want it, single step until I'm satisfied, then type
> "c" to continue at full speed.

Thanks! For some reason, I thought you had to pass set_trace an
argument of the frame you wanted.  That's exactly what I want :)
-- 
Chris Green <cmg at dok.org>
Fame may be fleeting but obscurity is forever.



More information about the Python-list mailing list