问题描述
我正在尝试使用Bazel the Examples to build C++ code进行构建和调试。我正在使用the Visual code editor这样做。
有了Bazel构建目标,我就有了项目构建目标
我在其中执行构建目标的位置(右键单击以构建 hello-world 目标)。当我开始调试项目时,我无法在断点处停下来,并且会一直执行。
这是我的 launch.json
{
"version": "0.2.0","configurations": [
{
"name": "(gdb) Launch","type": "cppdbg","request": "launch","program": "c:\\bazel\\examples\\cpp-tutorial\\stage1\\bazel-bin\\main\\hello-world.exe","args": [],"stopAtEntry": false,"cwd": "${workspaceFolder}","environment": [],"externalConsole": false,"MIMode": "gdb","miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe","setupCommands": [
{
"description": "Enable pretty-printing for gdb","text": "-enable-pretty-printing","ignoreFailures": true
}
]
}
]
}
如何将项目设置为调试模式并在断点代码行处停止?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)