Developer technologies | Visual Studio | Debugging
A core feature of Visual Studio that allows developers to inspect, analyze, and troubleshoot code during execution.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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"