HassenPy / django-pdb

Gives you `manage.py runserver --pdb` and `manage.py test --pdb`
394 stars 61 forks source link

New option to runserver: --pm for post mortem mode #10

Closed Psycojoker closed 12 years ago

Psycojoker commented 12 years ago

Drops the user into a (i)pdb shell if an exception is raised in a view.

I've chosen to drop by default in ipdb if it is installed or in pdb if it's not the case instead of adding 2 different options. Maybe you won't like this.

Code is heavily inspired by the code of http://eric.themoritzfamily.com/announcing-django-viewtools.html