Skip to content

Commit 268dd5e

Browse files
committed
Change debug flag to enter pdb directly
1 parent 32c19bf commit 268dd5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stackprinter/formatting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ def format_exc_info(etype, evalue, tb, style='plaintext', add_summary='auto',
195195
except Exception as exc:
196196
import os
197197
if 'PY_STACKPRINTER_DEBUG' in os.environ:
198-
raise
198+
import pdb
199+
pdb.post_mortem(exc.__traceback__)
199200

200201
our_tb = traceback.format_exception(exc.__class__,
201202
exc,

0 commit comments

Comments
 (0)