mdmintz / pdbp

pdbp (Pdb+): A drop-in replacement for pdb and pdbpp. To replace "pdb", add "import pdbp" to an "__init__.py" file.
Other
75 stars 2 forks source link

Retain command history between sessions like ipdb can #69

Open rob-levy-minimum opened 1 month ago

rob-levy-minimum commented 1 month ago

When I drop into a debugger with this setting in pytest.ini:

    --pdbcls=IPython.terminal.debugger:TerminalPdb

then I can use the up/down arrows (or ctrl+P) to browse command history from previous ipdb sessions. I don't know how on earth this works but it's incredibly useful.

Is this possible in pdb+?

mdmintz commented 1 month ago

The up/down arrows are working for me for the current session. History isn't saved from previous debugging sessions. You can probably combine Pdb+ with the IPython debugger if you want to merge the abilities.