VS Code on Windows 11 pops the 'Debugger Stopped" message when debugging Python 3.11.

Cary Hutchinson 20 Reputation points
2025-10-10T19:40:56.8666667+00:00

When trying to debug python code in VS Code using a virtual environment, the "Debugger Stopped" message pops up. When I check the launch.json file, it looks ok. There is a debugpy in the type: parameter When I change that to python, the problem goes away. I looked at some troubleshooting tips that recommend installing debugpy in the venv. That does not fix the error. Is this a bug? It happens every time I create a virtual environment. I have to switch the type to "Python". There is a statement that this is depreciated. Is there a work-around?

"type": "python"
{
    
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python Debugger: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "python":"${workspaceFolder}/venv/Scripts/python.exe"
        }
    ]
}
"type": "python"
Developer technologies | Visual Studio | Debugging
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.