Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Update: this prompted me to look into it again, it's super easy, if you're running an IPython shell, after an error just type "%debug". Or add "--pdb" to your python-shell-interpreter-args.

https://stackoverflow.com/questions/4234612/launch-an-ipytho...

This gives you a pdb prompt not an IPython prompt, but you can examine local variables where the exception was raised, and exit back to IPython with Ctrl-D.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: