launch.json 是这样的
{
// 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}/${fileBasenameNoExtension}.out",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"MIMode": "lldb",
// "preLaunchTask": "build",
"externalConsole": true
}
]
}
为啥 f5 debug 运行后没有弹出 console,设置的 externalConsole 不起作用吗
VS 内置的 debug console 只能输出结果,不能输入,会报出 Unable to perform this action because the process is running.
求老哥们指点
1
xiaomimei 2019-01-07 03:54:42 +08:00 via Android
不早了兄弟,早点睡觉啊
|
2
behanga 2019-01-07 13:34:21 +08:00
用内置的 兄弟
|
3
diveIntoWork OP @behanga 用内置的就没法从控制台输入数据,在 debug 模式下
|
4
liuxingbaoyu 2019-01-07 18:08:26 +08:00
"console": "externalTerminal",
试试 |
5
diveIntoWork OP @liuxingbaoyu 试过了,我用的 vscode 官方的 cpptool, console 这个属性好像是无效的。。
|
6
zooo 2019-09-19 19:27:50 +08:00
我也遇到这个问题了,求教
|