[Python-ideas] doctest

Barry Warsaw barry at python.org
Tue Feb 28 23:16:35 CET 2012


On Feb 27, 2012, at 10:59 PM, Michael Foord wrote:

>    I may be misremembering, but I think debugging support is also
>problematic because of the stdout redirection.

This one is largely solved too, but the trick is to put the pdb entry on the
same line as the doctest line you care about, e.g.:

    >>> import pdb; pdb.set_trace(); command.process(None)
    GNU Mailman 3...

When the debugger drops me into command.process(), everything Just Works.

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120228/e3c30ec3/attachment.pgp>


More information about the Python-ideas mailing list