Any way of achieving the same thing as python -mpdb from inside the script?

Posted by Geo on Stack Overflow See other posts from Stack Overflow or by Geo
Published on 2010-02-25T20:06:11Z Indexed on 2010/04/13 23:13 UTC
Read the original article Hit count: 351

Filed under:
|
|

Besides wrapping all your code in try except, is there any way of achieving the same thing as running your script like python -mpdb script? I'd like to be able to see what went wrong when an exception gets raised.

© Stack Overflow or respective owner

Related posts about python

Related posts about debugging