-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug with justMyCode=false causes "No such file or directory: /usr/lib/python310.zip" #824
Comments
This isn't really a bug, you're seeing that because you have You can just ignore the raised exception and resume the debugger execution (or you can uncheck the |
Thanks, that kinda helped, but is there a way to filter "not my code" scope somehow in this regard? {
"justMyCode": true,
"justMyCode-except": [
"/tmp/test/venv310/lib/python3.10/site-packages/somelib/"
]
} |
Regarding exceptions, unfortunately no (improvements here have already been brought up in #790 but there's no timeline to tackle those). An alternative may be defining what's considered your own code (when i.e.: You can define an environment variable: |
Issue Type: Bug
Behaviour
Debugging literally a
print("hi")
file with"justMyCode": false
inlaunch.json
Expected vs. Actual Behaviour
A wild exception appears:
Steps to reproduce:
launch.json
:This is not a 3.10 specific quirk; I tried installing a
python36
package and got a stack with the same meaning:If I create
~/.local/lib/python3.6/site-packages
directory, the stack is exactly the same as for 3.10.I am pretty sure that about a month or two ago I did not need or even know about
justMyCode
setting and was debugging just fine.Diagnostic data
python.languageServer
setting: PylanceUser Settings
Extension version: 2021.12.1559732655
VS Code version: Code 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:39:46.686Z)
OS version: Linux x64 5.10.89-1-MANJARO
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: