-
Notifications
You must be signed in to change notification settings - Fork 145
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
Timed out waiting for debugger to spawn #239
Comments
What's the version of the Python extension? Can you share your launch.json configuration? Does it print anything in the terminal? If you're setting |
Python extension version is: 2020.5.78807 my launch.json file is : { and that what is printed in the terminal |
update : |
New message: "Timed out waiting for launcher to connect" |
Alright, at least it's finding it! Can you please add this to your launch.json configuration: "logToFile": true and then look for files named |
This is what is the file said: and it start giving me the old message again |
There should be more than one file matching the pattern in that directory. The ones I'm particularly interested in are |
debugger.vscode_e65c035f-05d7-4581-801b-880ff4ca624d.log Here it is the three files you asked for |
Judging by the time stamps in the log, it just takes a lot of time to start every process involved (and each debug session has several!). For example, the launcher process doesn't even get to write the very first log entry until 7 seconds after it has been spawned. And when the launcher tries to use "runInTerminal" request to start the debuggee, it takes 10 seconds for the IDE to come back with a response to that. Our timeouts are generous, but they're not that generous... So, the real question here is why it takes so long to spawn processes. Is that something that you can observe when starting things manually? E.g. if you just do Also, you appear to be using Python installed from the Microsoft Store. Try using official installers from https://www.python.org/downloads/ - I'm not sure it would make any difference, but it doesn't hurt to try to narrow it down. |
okay there is a noticeable delay when I run the code from the integrated terminal |
Python in Microsoft Store is official. But it's still relatively new compared to the regular installers, and there are issues every now and then, so I'm wondering if you are running into one that is specific to the Store. This is the Store version - you should be able to uninstall it after opening it in the Store app: This is the regular installer: (You can also have both versions installed side by side, and pick the one that you want to use via the Python version selector on the status bar. But it might get confusing when you're using them directly from command line, because only one of them will be on PATH.) |
I meant from their website, not from Microsoft store |
Ah, I see - it was Either way, the fundamental problem is the slowdown. Are you only seeing that in VSCode integrated terminal, or is it also happening in the system terminal? Is there anything unusual in Process Explorer, e.g. overuse physical memory, or perhaps too many background processes - especially python.exe ones? |
I faced the same problem. |
We've since seen CI tests occasionally affected by timeouts (probably due to heavy load). Between that and your reports from the wild, I'm going to do two things:
|
Make timeouts for process spawning and exiting configurable, and increase the default value for spawning.
Hello
I'm using the debugger with python and it gives me this wired message
"timed out waiting for debugger to spawn "
I'm using python 3.8.2 and version of vscode is 1.45
The text was updated successfully, but these errors were encountered: