Skip to content
Advertisement

vscode returning “Timed out waiting for launcher to connect” error, python runs perfectly in other text editors and in terminal

I got this error in VSCode, saying that it timed out waiting for the launcher to connect. I’ve tested it and Python works perfectly fine in command prompt and in other text editors. This is what it says: VSCode error This is what my launch.json file is:

{
    // 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: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal"
        },
        {
            "type": "pwa-chrome",
            "request": "launch",
            "name": "Launch Chrome against localhost",
            "url": "http://localhost:8080",
            "webRoot": "${workspaceFolder}"
        }
    ]
}

I don’t know what is wrong or how to fix it. It was working perfectly before and then it simply threw that error when it was running.

Advertisement

Answer

enter image description here

enter image description here

Sorry, but it’s a little weird of your debug command. Could you try to delete the Debug Console and try it again? And if it still does not work, could you attach the full outputs from the first line of the Debug Console?

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement