I am trying Visual Studio Code for debugging C++ code. I would like the debugger to use the integrated terminal for showing the STDOUT and reading from the STDIN. Currently it opens an external terminal.
I tried putting "console": "integratedTerminal"
in launch.json but I get the parsing error: Property console is not allowed
.
How can I achieve the behaviour I described?
EDIT: this is my launch.json file
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/path_to_my_executable",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb"
}
],
"console": "integratedTerminal",
}