-
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
Just my code not working in VS code #1674
Comments
setting "debugpy.debugJustMyCode": false is the cause of the issue. Basically:
|
Configuration used:
|
Thanks for your bug report @irm-codebase, that was a bug in vscode related to justMyCode, can you try again and see if the error persist with the last version of vscode? Thanks |
@paulacamargo25 thanks for the help! Tried with the config below. VSCode is telling me that those settings are not being checked: Is this another, separate issue? launch.json config: {
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false
}
]
} settings.json:
|
Also, small little rant: VSCode has been... pretty bad to work with lately. Obviously not the fault of the folks helping with this issue, but it's just... kind of a bad IDE to work with at the moment. At least for python... |
Hey @karthiknadig, this issue might need further attention. @irm-codebase, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
@karthiknadig since the bot asked... this bug is till present in the newest VSCode version. |
The |
This works for me. I used this code here: import pytest
def test_justmycode():
pytest.skip("test_justmycode is not implemented yet.")
test_justmycode() Then I stuck a breakpoint in this file: .venv\Lib\site-packages_pytest\outcomes.py The breakpoint hit when running with justMyCode=false. Can you try that same repro? It might be a path mapping problem. The file you have with the 3rd party code is not the path that debugger is finding. |
Redirected from #224487
Type: Bug
As the title says: when I set a launch.json file and try to debug my code (selecting "with launch.json", VScode returns:
[Errno 2] No such file or directory: 'home/[myusername]/.local/lib
This is making debugging code outside mine (justMyCode=false) impossible, and is very annoying. What's going on?
Note: I use conda, and I have correctly selected my interpreter to be conda.
VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:08:12.169Z)
OS version: Linux x64 6.9.11-200.fc40.x86_64
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (32)
The text was updated successfully, but these errors were encountered: