Skip to content
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 #502

Open
1John419 opened this issue Nov 14, 2024 · 2 comments
Open

Debugger Hangs on check_output #502

1John419 opened this issue Nov 14, 2024 · 2 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@1John419
Copy link

from subprocess import check_output

command = r'dir'
output = check_output(command, shell=True)
print(output)

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.

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Nov 14, 2024
@eleanorjboyd
Copy link
Member

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?

@1John419
Copy link
Author

1John419 commented Nov 14, 2024

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Py",
      "type": "debugpy",
      "request": "launch",
      "program": "${file}",
      "console": "integratedTerminal",
    },
    {
      "name": "Py redirect",
      "type": "debugpy",
      "request": "launch",
      "program": "${file}",
      "console": "integratedTerminal",
      "args": [">", "${relativeFileDirname}/output.txt"]
    },
  ]
}

Windows 10 Pro 64-bit
Python 3.12.2 64-bit
VS Code 1.95.2

As stated, debugger hangs attempting to execute this command:

output = check_output(command, shell=True)

Regression. Runs without issue using version 2024.10.0. Consistently hangs using version 2024.12.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants