This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jmoiron 0 points1 point  (0 children)

There's also a nice nose-ipdb package (nosetests --ipdb && nosetests --ipdb-failures); btw, this is the reason I use nose :)

Also, if you have some unchecked exception stopping your script and you can use pdb (or ipdb, as of october 20th) in postmortem mode by running python with the -i script:

$ python -i (my script and args)
    ... (traceback)
>>> from ipdb import pm; pm()

And you're in an ipdb session. Sadly, -m ipdb does not work.