As I can't give input in the debug console, I'm trying to run the debugger in External terminal in VS Code.
This is the part of launch.json config file for external terminal.
{
"name": "Python: Terminal (external)",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"cwd": "",
"console": "externalTerminal",
"env": {},
"externalConsole": true,
"envFile": "${workspaceRoot}/.env",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit"
]
},
I added the "externalConsole": true part as they said here and I tried with or without that statement.
I get this error,
Debug adapter process has terminated unexpectedly
I tried the docs and the IntelliSense in the json file, but I can't understand and get it to work.