Describe the bug
When 2 breakpoints are encountered in pytest with pudb set up, this error pops: Debugger instance already exists
To Reproduce
Steps to reproduce the behavior:
- install pudb and pytest in venv
- create this
test.py
def test_foo():
breakpoint()
breakpoint()
pytest --pdbcls pudb.debugger:Debugger --pdb --capture=no test.py (following https://documen.tician.de/pudb/starting.html#usage-with-pytest)
- First breakpoint is encountered in pudb, press
c to continue to second one
- See error
Expected behavior
The debugger should be called on second breakpoint
Versions
pudb 2022.1.3