-
Notifications
You must be signed in to change notification settings - Fork 26
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
Debugger: setting "justMyCode": false does not work in a Python 3.10 venv #139
Comments
It it possible to get it to work by also adding |
Can you clarify where you are triggering this from? You can trigger debugging for 3 possible locations. The instructions vary based on which one you used. There is the button in the debug view, then there is "debug-in-terminal" button at the top of the open python file, then there is the debug menu item. The debugger itself does not know how this was triggered, so the message generated only suggests a setting that it understands. For the The following feature should address this as it aims to provide a dedicated solution enabling |
The debug button on the top right, next to the split panel button. The other two methods ("Python: Current file" in debug panel and |
I wanted to chime in to say that I have been experiencing something similar on Given the setup steps mentioned by @k98kurz.
As a workaround, I have to restart VSCode constantly to make sure I can retain the ability to step into 3rd party code. Apologies for not having a reliable repro a bit more fully formed. My hope is that the anecdote above will either be enough for a reproduction, or enough to know where to look for a likely cause in the code. |
Quick update to say that I've also experienced this same "it works the first time and then doesn't work any subsequent times" using the Testing Explorer |
When you trigger This issue can also be related to #137. Here you will be able to run the config that you want with this button. |
In my reproductions with both I'll test again once #138 merges to see if it's still reproducible and open a new issue if it is (to make sure the impact and repro are super clear). Thanks! |
my configuration. adding
"configurations": [
{
"name": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false,
} |
I get the same as @brian316 with config (almost) from https://code.visualstudio.com/docs/python/testing#_debug-tests
|
@smasyutin |
Faced the same issue as @brian316, disabling the mentioned breakpoints fortunately fixes it for me too. Thanks for posting that workaround! |
Disabling the breakpoints mentioned by @brian316 worked for me as well. Thank you for the workaround! Some info about my issue. Some info about the error messages I was getting: With Python 3.10 the error was: It is worth noting that Python 3.10 was installed globally, and Python 3.12 was installed to my user account. |
It's weird that @brian316 's method actually works without the need to touch launch.json at all. |
I'm not having much luck with matching my breakpoint settings to those in #139 (comment). I'm in a multi-root/folder workspace and I've been suspicious that that may affect this behavior (perhaps due to the extension not mapping the virtual environment files correctly from the workspaceFolder relative path to the |
UPDATE: I just tried setting I had always been relying on the launch-configuration-level setting of |
Just ran into this issue, I still can't launch with breakpoints enabled as indicated by @brian316. Could it be worthwhile to reopen this issue? |
Have the same issue with Python 3.12 while running tests: VSCode: 1.95.1 Might be related to microsoft/vscode-python#21249 |
Type: Bug
Behaviour
Expected vs. Actual
Expected: setting
"justMyCode": false
within the autogenerated launch.json file should allow the debugger to step through imported code.Actual: setting
"justMyCode": false
within the autogenerated launch.json file results in the same "frame skipped" message that says to set"justMyCode": false
within the autogenerated launch.json file.Steps to reproduce:
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.14.0
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:18:39.991Z)
OS version: Linux x64 6.2.0-26-generic snap
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: