I am debugging python code with vs code using configuration in launch.json below:
{
"name": "Python: my script",
"type": "python",
"request": "launch",
"program": "C:/Users/myoucef/source/repos/test.py",
"console": "integratedTerminal",
"args": ["-o", "D:/Marc/123.json,"],
"python": "${command:python.interpreterPath}",
},
I have selected my default terminal to be windows cmd:
Issue is that VS code keeps opening the Python Debug Console in Powershell. I do not want to use powershell, I need to have the Python Debug Console in cmd.
It was always working fine but looks like an update or something happened and the default profile is now ignored.
When I open a new terminal window, it opens it in cmd but even at VS code startup, it opens powershell first.
I have defined below settings in the project settings.json:
{
"python.pythonPath": "C:\\Users\\myoucef\\Anaconda3\\python.exe",
"terminal.integrated.profiles.windows": {
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
}
},
"terminal.integrated.defaultProfile.windows": "Command Prompt",
}
But nothing works, I restarted computer and still nothing helped. I searched and saw that this issue happened a lot in the past but definitely can't find a workaround for now.
This is my current version of VS code:
Many thanks for any support.