You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
justMyCode stopped working after version 2024.10.0 #1785
i'm using vs code with the python debugger extension and i noticed that recently stepping into 3rd party libraries stopped working. the version that i noticed this happening on is 2024.14.0 and the last version where i could get it to work is 2024.10.0 which is the one that i currently switched to. can someone have a look into this?
thanks
python version: 3.12.0
os version: windows 10 10.0.19045
vs code version: 1.96.0
current debugger version: 2024.14.0
last working version: 2024.10.0
The normal debug launch doesn't include those rules, the test debug launch does. I don't think that should be interfering though, but maybe there's a bug in the include matching.
Found the location. We're not using the 'justMyCode' setting in the sys.monitoring to code to check if we should filter things not in the project scope.
This issue should be fixed in the latest build of debugpy. It should ship with VS code in a future version of the Python Debugger Extension or you can install your own debugpy from pypi
Activity
hanlsin commentedon Dec 17, 2024
I also got the same issue.
And I faced the same message "Frame skipped from debugging during step-in." like as RealGecko (@Real-Gecko) commented: microsoft/vscode-python-debugger#139 (comment)
rchiodo commentedon Dec 17, 2024
This only seems to reproduce with test debugging. Not sure why at the moment.
If you use this for debugging a file, stepping into 3rd party libraries works fine:
{ "name": "Python Debugger: Current File", "type": "debugpy", "request": "launch", "program": "${file}", "purpose": ["debug-in-terminal"], "console": "integratedTerminal", "justMyCode": false, "logToFile": true },But this won't (when debugging tests)
{ "name": "Python: Debug Tests", "type": "debugpy", "request": "launch", "program": "${file}", "purpose": [ "debug-test" ], "console": "integratedTerminal", "justMyCode": false, "logToFile": true }The only difference I see in the launch is the 'rules' section of the launch args.
The normal debug launch doesn't include those rules, the test debug launch does. I don't think that should be interfering though, but maybe there's a bug in the include matching.
rchiodo commentedon Dec 17, 2024
Here's the example test I used:
rchiodo commentedon Dec 18, 2024
It also works for 3.11 or earlier. Must be a bug in the sys.monitoring code
rchiodo commentedon Dec 18, 2024
Found the location. We're not using the 'justMyCode' setting in the sys.monitoring to code to check if we should filter things not in the project scope.
rchiodo commentedon Jan 15, 2025
This issue should be fixed in the latest build of debugpy. It should ship with VS code in a future version of the Python Debugger Extension or you can install your own debugpy from pypi
rchiodo commentedon Jan 15, 2025
Take that back, our release to PyPI failed when it looked like it succeeded. Fix will be coming after we resolve that problem.
rchiodo commentedon Jan 16, 2025
PyPI release succeeded. v1.8.12 is now available
fix(deps): update backend dependencies (patch) (patch)
Merge branch 'renovate/patch-backend-dependencies' into 'main'