pip install pdbpp pytest --pdb
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