Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

How to use integratedTerminal in launch.json for C++ in Visual Studio Code?

$
0
0

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",
}

Viewing all articles
Browse latest Browse all 97355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>