diff options
Diffstat (limited to 'eti-udp/ipdb.py')
-rw-r--r-- | eti-udp/ipdb.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/eti-udp/ipdb.py b/eti-udp/ipdb.py new file mode 100644 index 0000000..b431f80 --- /dev/null +++ b/eti-udp/ipdb.py @@ -0,0 +1,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) |