[IMP] post_mortem add pudb/ipdb debugger support
Prefer pudb/ipdb to pdb if available. Closes: #4211
This commit is contained in:
committed by
Antony Lesuisse
parent
e24010d073
commit
5e8b6934d1
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user