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): ...@@ -59,8 +59,11 @@ def debugHandler(sig, frame):
def getPdb(): def getPdb():
try: # try ipython if available try: # try ipython if available
import IPython import IPython
IPython.Shell.IPShell(argv=[]) try:
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: except ImportError:
import pdb import pdb
return pdb.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