Reveal local state in failing assertions and exceptions.
Section: pytest and unittest Debugging
Show local variables in tracebacks
bash
bash
pytest -vv --showlocalsLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing pytest and unittest Debugging