-
Notifications
You must be signed in to change notification settings - Fork 68
timed out waiting for debugger to spawn #1982
Comments
Could you please provide some more information about the scenario? Especially the debug config in launch.json, and the command line that shows up in the terminal when you start. |
Here it is: launch.json: {
} |
Thanks! One more thing I forgot: import ptvsd; print(ptvsd.__version__) and I notice that path to python.exe doesn't look like it's for a globally installed interpreter - is that a virtual environment? |
I am having the same issue: Here's my Launch.json: {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Module",
"type": "python",
"request": "launch",
"module": "ghostarms"
}
]
} |
@TylerGubala Can you also provide |
Running Windows 10 (no virtual env). Python is set to a venv. |
Got the same issue ("Session-1 timed out waiting for debuggee to spawn") on Win10, VS Code 1.41.0, Python extension 2019.11.50794 and ptvsd 5.0.0a7. It happens here only in virtual environment ( |
To get import ptvsd
print(ptvsd.__version__) But if you're hitting this when debugging a virtual environment, it's the same as #1930. We already have a fix for that - you can install the insider's build of the extension to get a version of ptvsd with the fix: https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix If you'd rather stay on stable version, then you can opt out of the pre-release debugger by unchecking Python > Experiments: Enabled in VSCode settings. |
Thanks for the info! |
I am also facing the same issue.
|
@RajeshSivadasan, can you try a more recent version of the extension (and perhaps VSCode as well)? |
I have the same issue, I also get the message "Session -1 timed out waiting for debuggee to spawn", but not on Visual Studio Code, I use Visual Studio 2019. As the provided solutions all seem to be specific to Visual Studio Code, how can I solve it in Visual Studio 2019? |
@huguesv Is there any specific trick to ensuring that VS runs a version of debugpy with the fix? |
they're mostly non interchangeable now: VS 2019 16.4 and earlier only works with ptvsd 4.x |
Are you saying there is no solution? |
@hecsanper If you're hitting the same bug, then it should be fixed in debugpy. So updating VS to 16.5 should take care of it. If you're still seeing the error message after upgrading, please file a separate issue for it, with more information (Python version, virtual environment or not, launch.json config, repro steps, and ideally also logs from |
@int19h Sorry for the late reply. I believe this is the latest version of both extension and VS code. Let me know if I am missing anything. Thanks! |
@RajeshSivadasan 2020.2 is a version of the extension from February, with correspondingly old debugger - it should be 2020.3 if you're running the most recent stable. But we're iterating on the debugger quickly to ensure that we can go all in on debugpy, so it's best to run the insiders version of the extension to get the most recent fixes. #2104 explains how to enable that. If you still see the problem with those versions, please file a separate issue on https://github.com/microsoft/debugpy - even if the error message is the same, the underlying problem is different, so we need to track the investigation and the fix separately. |
I already have that version. I more or less solved the problem by running without debugging, but I can't debug now. |
Getting the error above as a pop up after trying to debug a python file. Using the latest python extension.
Reverted to a version a month old, 2019.11.50794 (22 November 2019), and the problem is gone.
The text was updated successfully, but these errors were encountered: