I made some effort to set up the theme of powershell and windows terminal. Now it takes effect in integrated terminal of vscode.
Since vscode uses powershell as its integratedTerminal debugging option, I think there must be a way using powershell as the externalTerminal option(and defualt is cmd). However, when I tried to change the default external terminal option in vscode's settings.json like this:
"terminal.external.windowsExec": "powershell.exe",
and tried to launch a debug session, the powershell just popped up and disappeared at once. Then it comes to a warning message reading "Timed out waiting for luancher to connect.".
When I tried to switch to wt.exe(Windows Terminal), it seemed that the auto-gened '\c' command cannot be recognized by vscode. Here comes the warning:
The following argument was not expected: \c
Both powershell and windows terminal executable are added to PATH. And here is my python program's launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current file",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "externalTerminal"
}
]
}
I suppose nothing went wrong when I changed these settings, and nothing went wrong using cmd.exe. So how can I debug python programs using external powershell or windows terminal?