When I try to debug a Python file in VS Code, the debugger opens in a new terminal instead of using the existing integrated terminal.
I have tried the following:
Making sure that I have saved my launch.json configuration file. Restarting VS Code. Trying debugging a different Python file. If I am using a virtual environment, making sure that the virtual environment is activated.
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true
}
Environment:
- VS code Version: 1.79.2 (user setup)
- OS: WSL Ubuntu
As you can see in the image it launches a new terminal rather than using the existing terminal.