##// END OF EJS Templates
pydb_ipy.py extension adds %pydb magic when imported
vivainio -
Show More
@@ -0,0 +1,22 b''
1 import pydb
2 import IPython.ipapi
3 from IPython.genutils import arg_split
4 ip = IPython.ipapi.get()
5
6 def call_pydb(self, args):
7 argl = arg_split(args)
8 print argl
9 if ip.IP.has_readline:
10 ip.IP.savehist()
11 try:
12 pydb.runl(*args)
13 finally:
14
15 if ip.IP.has_readline:
16 ip.IP.readline.read_history_file(self.shell.histfile)
17
18 ip.expose_magic("pydb",call_pydb)
19
20
21
22 No newline at end of file
@@ -4,6 +4,9 b''
4 file around %run commands to prevent side effects from
4 file around %run commands to prevent side effects from
5 %runned programs that might use readline (e.g. pydb).
5 %runned programs that might use readline (e.g. pydb).
6
6
7 * extensions/pydb_ipy.py: Adds %pydb magic when imported, for
8 invoking the pydb enhanced debugger.
9
7 2006-10-23 Walter Doerwald <walter@livinglogic.de>
10 2006-10-23 Walter Doerwald <walter@livinglogic.de>
8
11
9 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
12 * IPython/Extensions/ipipe.py (ifile): Remove all methods that
General Comments 0
You need to be logged in to leave comments. Login now