##// 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
import pydb
import IPython.ipapi
from IPython.genutils import arg_split
ip = IPython.ipapi.get()
def call_pydb(self, args):
argl = arg_split(args)
# print argl # dbg
ip.IP.history_saving_wrapper( lambda : pydb.runl(*argl) )()
ip.expose_magic("pydb",call_pydb)