我是 Mac 的新手,但我认为这不是由此产生的问题。我一直在尝试将 GDB 设置为在 Eclipse 上使用 golang 进行编程的调试器。我知道大部分情况下该怎么做,但在某些时候,其中一个步骤是在 C/C++ 配置中打开调试首选项并填写调试器所在的路径。不幸的是,这个选项甚至没有出现在我面前:
为什么“GDB”选项没有出现在首选项 >> C/C++ >> 调试下?如果我没记错的话,它应该是 CDT 包的一部分,对吗?我只是使用了错误的版本吗?它应该给我这个选项:
至少对于 this tutorial 的作者 Neil Craft 是这样。
最佳答案
对于任何来这里寻找答案的人: https://www.ics.uci.edu/~pattis/common/handouts/macmingweclipse/allexperimental/mac-gdb-install.html#eclipse
If there is no GDB section in the C/C++Debug subtree, close the preferences window, and try to first start a debugging session for any project that you can already run without problems. You can do it by either clicking the Debug button on the toolbar, or selecting RunDebug from the main menu. This attempt will, of course, fail with an error message about the gdb command, but it will force the said C/C++DebugGDB settings to appear in the preferences.
关于eclipse - 在 mac 上的 Eclipse 中找不到 GDB 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34112474/