[IMP] post_mortem add pudb/ipdb debugger support

Prefer pudb/ipdb to pdb if available.

Closes: #4211
This commit is contained in:
Daniel Reis
2014-12-19 18:22:57 +01:00
committed by Antony Lesuisse
parent e24010d073
commit 5e8b6934d1
+7 -1
View File
@@ -4,5 +4,11 @@ import types
def post_mortem(config, info):
if config['debug_mode'] and isinstance(info[2], types.TracebackType):
import pdb
try:
import pudb as pdb
except ImportError:
try:
import ipdb as pdb
except ImportError:
import pdb
pdb.post_mortem(info[2])