MacOS Monterey
Python 3.9.13
VS Code 1.76.2
pytest==7.2.0
I'm running out of a virtualenv. When I debug one of my unit tests and try to step into a library function, it doesn't step in, it just runs to completion. Explicitly setting breakpoints in the library code has no effect. I have justMyCode set to false in launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false
}
]
}
Per Set breakpoint in imported python module in vs code, I tried adding site-packages to my workspace, but that didn't make any difference.
I can see the breakpoints set in the library code:
As soon as I do "Debug test", the breakpoints in the library code get disabled: