[Assorted-commits] SF.net SVN: assorted:[1871] sandbox/trunk/src/py/ipdb_on_caught_exception. py
Brought to you by:
yangzhang
From: <yan...@us...> - 2013-09-30 16:26:56
|
Revision: 1871 http://sourceforge.net/p/assorted/svn/1871 Author: yangzhang Date: 2013-09-30 16:26:54 +0000 (Mon, 30 Sep 2013) Log Message: ----------- Demo ipdb on caught exception Added Paths: ----------- sandbox/trunk/src/py/ipdb_on_caught_exception.py Added: sandbox/trunk/src/py/ipdb_on_caught_exception.py =================================================================== --- sandbox/trunk/src/py/ipdb_on_caught_exception.py (rev 0) +++ sandbox/trunk/src/py/ipdb_on_caught_exception.py 2013-09-30 16:26:54 UTC (rev 1871) @@ -0,0 +1,5 @@ +import ipdb,sys,traceback +try: + raise Exception() +except: + ipdb.post_mortem(sys.exc_info()[2]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |