Hacker News new | ask | show | jobs
by westurner 236 days ago
pytest has a --pdb flag:

  pip install pdbpp
  pytest --pdb
pdbpp: https://github.com/pdbpp/pdbpp

pytest docs > How to handle test failures > Using pdb — The Python Debugger with pytest > Dropping to pdb on failures: https://docs.pytest.org/en/stable/how-to/failures.html