I cannot debug in PyCharm using py.test. All the test suite is running ok in \"Debug mode\" but it doesn\'t stop on breakpoints.
I also have py
The root issue is debugging does not work if you have coverage enabled by default (usually on pytest.ini).
To disable just on pycharm, just add --no-cov
on the Additional Arguments
on the Run/Debug Configurations
.
Update Templates -> Python tests -> pytest
, so every new test gets this configuration.
After this, delete your current debug settings and redebug it.
Pycharm 2018.3.x
(still works in 2020.x)