From cabc9bae0fa07ad5ead4c117dd97efff03f10aad Mon Sep 17 00:00:00 2001 From: "Matthias (think)" Date: Thu, 12 Jul 2012 17:26:03 +0200 Subject: added experimental UDP application protocol --- eti-udp/ipdb.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 eti-udp/ipdb.py (limited to 'eti-udp/ipdb.py') 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) -- cgit v1.2.3