##// END OF EJS Templates
Remove debugger curframe attribute before using checkline()...
Thomas Kluyver -
Show More
@@ -816,6 +816,11 b' python-profiler package from non-free.""")'
816 self.shell.InteractiveTB.pdb = self.shell.InteractiveTB.debugger_cls()
816 self.shell.InteractiveTB.pdb = self.shell.InteractiveTB.debugger_cls()
817 deb = self.shell.InteractiveTB.pdb
817 deb = self.shell.InteractiveTB.pdb
818
818
819 # deb.checkline() fails if deb.curframe exists but is None; it can
820 # handle it not existing. https://github.com/ipython/ipython/issues/10028
821 if hasattr(deb, 'curframe'):
822 del deb.curframe
823
819 # reset Breakpoint state, which is moronically kept
824 # reset Breakpoint state, which is moronically kept
820 # in a class
825 # in a class
821 bdb.Breakpoint.next = 1
826 bdb.Breakpoint.next = 1
General Comments 0
You need to be logged in to leave comments. Login now