%debug broken in master #321

Closed
rkern opened this Issue Mar 29, 2011 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

rkern commented Mar 29, 2011

I get a traceback whenever I use %debug. Judging from the exception, I think it is related to the merging of the sqlite-history branch.

[~]
|4> %debug
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/Users/rkern/<ipython-input-4-86050904a938> in <module>()
----> 1 get_ipython().magic(u"debug")

/Users/rkern/git/ipython/IPython/core/interactiveshell.py in magic(self, arg_s)
   1746                 self._magic_locals = sys._getframe(1).f_locals
   1747             with nested(self.builtin_trap,):
-> 1748                 result = fn(magic_args)
   1749             # Ensure we're not keeping object references around:

   1750             self._magic_locals = {}

/Users/rkern/git/ipython/IPython/core/magic.py in magic_debug(self, parameter_s)
   1258         the %pdb magic for more details.
   1259         """
-> 1260         self.shell.debugger(force=True)
   1261 
   1262     @testdec.skip_doctest

/Users/rkern/git/ipython/IPython/core/interactiveshell.py in debugger(self, force)
    739             # fallback to our internal debugger

    740             pm = lambda : self.InteractiveTB.debugger(force=True)
--> 741         self.history_saving_wrapper(pm)()
    742 
    743     #-------------------------------------------------------------------------


/Users/rkern/git/ipython/IPython/core/interactiveshell.py in wrapper()
   1264 
   1265         def wrapper():
-> 1266             self.save_history()
   1267             try:
   1268                 func()

AttributeError: 'TerminalInteractiveShell' object has no attribute 'save_history'
Owner

minrk commented Mar 29, 2011

This is a duplicate of #318, and should be closed by #319 once merged.

minrk closed this Mar 29, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment