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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…