【发布时间】:2020-03-12 19:19:37
【问题描述】:
所以我在 Ubuntu 的 VS Code 中调试程序时遇到问题。当我尝试收到此消息时,launch:program '输入程序名称,例如 /home/daniel/Desktop/OOP/Test/a.out' 不存在,我可以选择查看 launch.json 文件。那么有什么想法有什么问题吗?还有什么问题?
这是 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": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "enter program name, for example ${workspaceFolder}/a.out",
"args": [],
"stopAt`enter code here`Entry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
【问题讨论】:
-
"program": "enter program name, for example ${workspaceFolder}/a.out"不为自己说话吗?
标签: c++ ubuntu visual-studio-code