Search code examples
pythonvisual-studio-codevscode-debugger

Debugging Python program doesn't work after updating to VS Code 1.66.0


Today (2022/3/31) I let the auto-update function update my VS Code to latest version 1.66.0 on Windows. After that, my normal debugging process doesn't work any more: when I press F5, the debugging control panel flashes and disappears immediately, nothing else happends. I couldn't find any useful error message on output and terminal windows. My launch.json file looks like this:

{
        "name": "DEBUG",
        "type": "python",
        "request": "launch",
        "program": "${workspaceFolder}\\starting.py",        
        "console": "integratedTerminal",    
        "justMyCode": false,
    }

I tried to change the console above to externalTerminal but it didn't help. Could someone tell me how to find out what's going on here?

Cheers,


Solution

  • You can try to reinstall the Python extension or install the older version of the Python extension. Delete the deprecated configuration of python.pythonPath in your settings.json.