[IPython-dev] IPython <-> PuDB integration

Ville M. Vainio vivainio at gmail.com
Fri Jul 10 00:41:18 EDT 2009

On Fri, Jul 10, 2009 at 3:01 AM, Andreas
Klöckner<lists at informa.tiker.net> wrote:

> Now that gave me an idea. The IPython web page mentions that IPython can
> optionally drop to Python's pdb debugger. If a user has PuDB installed, you
> could offer an option to drop into PuDB instead, resulting in an arguably
> nicer debugging experience (I'm biased, though). As of 0.92.7 (hot off the
> presses) PuDB offers the same programming interface as pdb--just replace 'pdb'
> with 'pudb'.

The recommended way to examine a post-mortem stack is to call %debug
after it happens. Perhaps you could provide a magic command as an
extension that did the same, but for PuDB? See %debug?? in ipython

> I hope this suggestion meets with your approval. :)

Actually, it doesn't even need approval, optimally, since you can ship
the ipython extension with PuDB. grep for expose_magic in source tree
how to create new magic commands. There is also pydb integration in
place already, it may give you some hints.

BTW, nice project ;-). I always thought pdb sort of sucks because of
the archaic usage pattern (even gdb provides a full-screen mode out of
the box).

Ville M. Vainio

More information about the IPython-dev mailing list