##// END OF EJS Templates
use history_saving_wrapper to store/restore readline history
use history_saving_wrapper to store/restore readline history

File last commit:

r408:f8850b89
r408:f8850b89
Show More
ipy_pydb.py
14 lines | 311 B | text/x-python | PythonLexer
vivainio
pydb_ipy.py extension adds %pydb magic when imported
r387 import pydb
import IPython.ipapi
from IPython.genutils import arg_split
ip = IPython.ipapi.get()
def call_pydb(self, args):
argl = arg_split(args)
vivainio
rm debug printing, fix typo bug
r388 # print argl # dbg
vivainio
use history_saving_wrapper to store/restore readline history
r408 ip.IP.history_saving_wrapper( lambda : pydb.runl(*argl) )()
vivainio
pydb_ipy.py extension adds %pydb magic when imported
r387
ip.expose_magic("pydb",call_pydb)