C++ &引用;不允许使用属性控制台";VSC Ubuntu 20.04中的问题
我正在用ubuntu 20.00中的Visual Studio代码调试我的cpp程序。因此,我面临以下问题:C++ &引用;不允许使用属性控制台";VSC Ubuntu 20.04中的问题,c++,debugging,visual-studio-code,ubuntu-20.04,C++,Debugging,Visual Studio Code,Ubuntu 20.04,我正在用ubuntu 20.00中的Visual Studio代码调试我的cpp程序。因此,我面临以下问题: { "resource": "/home/xxx/Desktop/Project/.vscode/launch.json", "owner": "_generated_diagnostic_collection_name_#4", "severity": 4,
{
"resource": "/home/xxx/Desktop/Project/.vscode/launch.json",
"owner": "_generated_diagnostic_collection_name_#4",
"severity": 4,
"message": "Property console is not allowed.",
"startLineNumber": 17,
"startColumn": 13,
"endLineNumber": 17,
"endColumn": 22
}
这是我的launch.json文件:
"version": "0.2.0",
"configurations": [
{
"name": "g++ - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "externalTerminal",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++ build active file",
"miDebuggerPath": "/usr/bin/gdb"
}
]
}
我不知道我如何处理这个问题
谢谢。如果您希望在外部控制台窗口中执行代码,请将“控制台”:“外部终端”
替换为“外部终端”:true
。否则,完全拆下管线