Open the launch.json
file and add the following configuration:
{
"name": "Python: Debug Console",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "internalConsole"
}
When you specify none
internalConsole
for the console, it will run the debugger in the debugger console instead of running in the internal or external terminal.