-
Notifications
You must be signed in to change notification settings - Fork 146
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
Attach-to-PID incorrectly defaults to unsupported "subProcess":true #1266
Comments
I noticed that launching However, I'm trying to debug a third-party code base which makees extensive use of |
The real issue here is that we simply don't support subprocess debugging in combination with attach-to-PID at the moment. Unfortunately, this went unnoticed when we changed the default for |
Here's the behavior I'm seeing:
So it looks to me that the |
For attach configurations, "subProcess" in launch.json is not applicable in any attach scenario, because by the time the debuggee sees the config, it is already too late to apply the necessary changes to the process. That's why you need to use either the API - |
I will add this to the FAQ. |
Type: Bug
Steps to Reproduce:
Folder contents:
Contents of
cli.py
:Contents of
test_debugpy_issue_simplified
:Contents of
launch.json
:In order to replicate the issue, carry out the following steps:
python .\test_debugpy_issue.py
test_debug_issue_simplified.py
The debugger freezes at
subprocess.call
. Running the script without debugging works just fine.Extension version: 2023.6.0
VS Code version: Code 1.77.1 (b7886d7461186a5eac768481578c1d7ca80e2d21, 2023-04-04T23:21:11.906Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No
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
skia_renderer: enabled_on
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: