From dd3bed2923ef82f7625a918c862773ba9ee4500e 2022-02-25 10:45:58 From: Matthias Bussonnier Date: 2022-02-25 10:45:58 Subject: [PATCH] Merge pull request #13485 from cansarigol/master 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())),