-
Notifications
You must be signed in to change notification settings - Fork 143
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 Hangs on check_output #1771
Comments
Hi! Can you include the config you use from launch.json to run this in the debugger? Do you know which line it hangs on in the debugger? |
Windows 10 Pro 64-bit As stated, debugger hangs attempting to execute this command:
Regression. Runs without issue using version 2024.10.0. Consistently hangs using version 2024.12.0. |
I was running into a similar issue. I had consistent reproduction with a similar script, though mine used Popen. As a one-liner: I narrowed down where things were blocking. It was line 1205 of subprocess.py: https://github.com/python/cpython/blob/6da9d252ac39d53342455a17bfec7b1087fba697/Lib/subprocess.py#L1205 However, I tried to reproduce @1John419's example, including using Python 3.12.2. This involved deleting my virtual environment. Since then, I've been unable to reproduce the issue of subprocess not returning. So maybe it was some weird caching issue? Hard to know really, but like John, I only had the behaviour with 2024.12.0 and not with 2024.10.0. I still have an issue that seems related (let me know if you want a distinct ticket for it). When I change "git" to a command that is invalid, pydevd raises an exception.
My setup: |
@mheguy, do you see the same issue where this is specifically a regression or do you see the bug on the earlier version of the extension too? |
I would hazard a guess this is a bug that was fixed in the latest version of debugpy where we changed how we debug 3.12 and 3.13 code. I can't reproduce the issue. |
Sorry to report that this issue still exists in v2024.12.0... |
Sorry but that's not the latest version. You'd have to install the prerelease version. |
OK, thanks for clarifying. Issue not observed in pre-release. |
This hangs in the debugger in 2024.12.0. However, it runs as expected from the command line outside of vscode.
Works fine in 2024.10.0.
The text was updated successfully, but these errors were encountered: