VS Code Python Test Debugging Does Not Hit Breakpoint
I had this problem in Python development environment wherein a breakpoint is not hit while trying to debug tests. It turns out that this is a known issue and a work around is available via the launch.json file.
{ "version": "0.2.0", "configurations": [ { "name": "Debug Tests", "type": "python", "request": "launch", "purpose": [ "debug-test" ], "console": "integratedTerminal", "justMyCode": false, "env": { "PYTEST_ADDOPTS": "--no-cov" } } ] } Below is the explanation form Microsoft.