##// END OF EJS Templates
Store command history for the debugger
Thomas Kluyver -
Show More
@@ -277,7 +277,9 b' class Pdb(OldPdb, object):'
277 line = self.cmdqueue.pop(0)
277 line = self.cmdqueue.pop(0)
278 else:
278 else:
279 try:
279 try:
280 line = ptk_prompt(get_prompt_tokens=get_prompt_tokens)
280 line = ptk_prompt(get_prompt_tokens=get_prompt_tokens,
281 history=self.shell.debugger_history,
282 )
281 except EOFError:
283 except EOFError:
282 line = 'EOF'
284 line = 'EOF'
283 line = self.precmd(line)
285 line = self.precmd(line)
@@ -100,6 +100,7 b' class TerminalInteractiveShell(InteractiveShell):'
100 self._update_layout()
100 self._update_layout()
101
101
102 pt_cli = None
102 pt_cli = None
103 debugger_history = None
103
104
104 autoedit_syntax = Bool(False,
105 autoedit_syntax = Bool(False,
105 help="auto editing of files with syntax errors.",
106 help="auto editing of files with syntax errors.",
@@ -362,6 +363,8 b' class TerminalInteractiveShell(InteractiveShell):'
362 self.init_term_title()
363 self.init_term_title()
363 self.keep_running = True
364 self.keep_running = True
364
365
366 self.debugger_history = InMemoryHistory()
367
365 def ask_exit(self):
368 def ask_exit(self):
366 self.keep_running = False
369 self.keep_running = False
367
370
General Comments 0
You need to be logged in to leave comments. Login now