Make pytest and VSCode co-operate
When running pytest
in debug mode for VSCode
, the debugger cannot take over control when an (Assertion)error or exception is raised in the test.
Instead, it will halt in the pytest.py
main file.
There is a suggested workaround to mitigate this behavior, by updating conftest.py
.
It would be very helpful to have this feature, considering that we officially recommend VSCode
.