-
Notifications
You must be signed in to change notification settings - Fork 137
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
Timeout while using vscode debugger with any program which spawns a process #1271
Comments
It's not a conflict; it's an intentional detour of execv to enable debugging of Python subprocesses. It doesn't seem to be affecting our multiproc tests - is this specific to Unicon? |
As of now it can be reproduced with Unicon. Ideally we should not see any delay while interacting with the process This is what I see the logs , and every thing start working normally after this delay
|
Any comments on how to resolve this |
Any update on this issue, many of our team members are facing this issue |
To clarify, do you actually need subprocess debugging in your scenario? If you just want to debug the main process, setting |
Yes we use subprocess. Ours is an test framework which triggers testcases using subprocesss. And our main interest is debugging these testcases |
This has broken my debugging process and yes, I need to be able to debug a subprocess. Will try to work around for now. It would be nice to set my own timeout. |
Any news on this? It has been a problem for me too. |
I am facing the same issue when trying to debug a script that uses |
Environment data
VS Code
Version: 1.77.2 (Universal)
Commit: e344f1f539a80912a0e9357cec841f36ce97a4e2
Date: 2023-04-06T10:12:31.126Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Darwin arm64 22.4.0
Sandboxed: No
Actual behavior
This issue is similar to what is reported here.
But this time, it appears to be the issue is while using vscode debugger with any program which internally uses
os.execv
We use a library called Unicon, for creating a connection to any remote device via ssh.
This library internally uses
os.execv
, which looks like has a conflict with debugpy(pyadev_monkey.py)For every new process created using the above library, there is a delay of 5+ seconds and this delays the debugging process and affect the developer productivity time
Expected behavior
Should spawn the process wihout any delay
Steps to reproduce:
pip install pyats unicon
More info: https://developer.cisco.com/docs/unicon/
6. Run the debug mode
The text was updated successfully, but these errors were encountered: