Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 422f8d9

Browse files
cansarigolCarreau
authored andcommitted
Get history file from shell to debugger if it exists.
1 parent 935dedb commit 422f8d9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

IPython/terminal/debugger.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ def gen_comp(self, text):
6868
self.debugger_history = FileHistory(os.path.expanduser(str(p)))
6969
else:
7070
self.debugger_history = InMemoryHistory()
71+
else:
72+
self.debugger_history = self.shell.debugger_history
7173

7274
options = dict(
7375
message=(lambda: PygmentsTokens(get_prompt_tokens())),

0 commit comments

Comments
 (0)