blob: b431f80dc077e71e716095ae245d3ebb56bf2628 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import sys
from IPython.Debugger import Pdb
from IPython.Shell import IPShell
from IPython import ipapi
shell = IPShell(argv=[''])
def set_trace():
ip = ipapi.get()
def_colors = ip.options.colors
Pdb(def_colors).set_trace(sys._getframe().f_back)
|