From 422f8d9cf8c3858aab934853780a872610df50e4 2022-02-25 10:24:30 From: Can Sarigol Date: 2022-02-25 10:24:30 Subject: [PATCH] Get history file from shell to debugger if it exists. --- diff --git a/IPython/terminal/debugger.py b/IPython/terminal/debugger.py index d76550d..8448d96 100644 --- a/IPython/terminal/debugger.py +++ b/IPython/terminal/debugger.py @@ -68,6 +68,8 @@ class TerminalPdb(Pdb): self.debugger_history = FileHistory(os.path.expanduser(str(p))) else: self.debugger_history = InMemoryHistory() + else: + self.debugger_history = self.shell.debugger_history options = dict( message=(lambda: PygmentsTokens(get_prompt_tokens())),