-
Notifications
You must be signed in to change notification settings - Fork 140
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
Python Debugger: "Timed out waiting for launcher to connect" (take 2) #1713
Comments
For what is worth, I tried the trick mentioned by others, ie. to re-try the command line after launch. This did not work:
If I try to run debugpy by hand in the terminal, I have no error:
|
Are you getting the same problem where the command isn't ending up in the terminal in VS code? |
The vscode log says it received this request:
Which should have showed up in a terminal window in VS code I believe. |
That looks like there's a whole bunch of stuff that runs first? Not sure where that's coming from but it might be interfering with the debugpy launch. |
Don't know what it is or where it comes from, but as far as I recall it's always been there |
Maybe it's that 'vscode-copy-from-terminal-0.0.9' extension. |
Bingo, that was it! |
Oh awesome! Glad it works now. We can look out for this sort of thing if other people report the same issue. |
Hi, I have the same problem with the same sequence. But I didn't have the plugin vscode-copy-from-terminal-0.0.9. I'm using a conda environment to have a python version and poetry with an env too. I'm using vscode and remote SSH. Here the log : debugger.vscode_2492de48-f138-4f82-b02f-69de95fb34f6.log Another question, When the vscode terminal is launched to launch the debbuger. Text is written and the terminal is cleared. I can't see what is written. How can I stop the clearing terminal? |
Not sure why the terminal would be cleared, that's not normal. There might be logging somewhere in VS code for that situation though. You should try this without any other extensions except the debugger and the python extension enabled. |
I have tested with the minimal extension for me (see the image) and I have the same problem sadly. |
Environment data
python3 -m pip install debugpy
, and may not be the version used by VS Code. Not sure how to get that one. The Python Debugger extension is v2024.13.2024101501 (pre-release) (but same problem with v2024.12.0)Actual behavior
Exactly the same as reported in #1677
I have a very simple script:
I launch it from the following launch.json:
And I get the dreaded error message "Timed out waiting for the launcher to connect"
Strangely, I'm on v1.94.2 and have been for at least a week, and everything was working fine, until suddenly in the middle of the afternoon last Friday, it stopped working... I had not changed anything to my settings or environment.
Logs attached
debugger.vscode_62aa6d5d-f757-4cfc-a67f-52d139dcd71a.log
debugpy.adapter-93288.log
Expected behavior
Ability to run and debug Python code in VS Code
The text was updated successfully, but these errors were encountered: