【发布时间】:2021-02-12 09:48:17
【问题描述】:
您好,我最近开始在我的 C++ 课程中使用 VS 代码。我试图让调试器工作,但即使花了几个小时试图找出问题所在,我仍然收到以下错误“无法开始调试。未实现。”我有点不确定这意味着什么,更不用说如何解决它了。我的 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": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "Assigment_1.C++",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "externalTerminal"
}
]
}
【问题讨论】:
-
您似乎在尝试使用 Visual Studio Code 文本编辑器而不是真正的 Visual Studio。
-
Visual Studio 和 Visual Studio Code 是完全不同的产品。
-
"Assigment_1.C++"你确定那是编译后可执行文件的确切路径和文件名吗?
标签: c++ visual-studio-code vscode-debugger