Using pudb with pytest

pytest --pdbcls pudb.debugger:Debugger --pdb --capture=no

https://documen.tician.de/pudb/starting.html?highlight=pytest#usage-with-pytest

Tags