Commit 0243a547 authored by Julien Muchembled's avatar Julien Muchembled

Update debugger invocation with recent IPython

parent b3b5175f
......@@ -59,8 +59,11 @@ def debugHandler(sig, frame):
def getPdb():
try: # try ipython if available
import IPython
return IPython.Debugger.Tracer().debugger
shell = get_ipython()
except NameError:
shell = IPython.frontend.terminal.embed.InteractiveShellEmbed()
return IPython.core.debugger.Pdb(shell.colors)
except ImportError:
import pdb
return pdb.Pdb()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment