mac 在 Eclipse 中找不到 GDB 选项
Can't find GDB option in Eclipse on mac
我是 Mac 的新手,但我认为这不是由此产生的问题。我一直在尝试将 GDB 设置为在 Eclipse 上使用 golang 进行编程的调试器。我知道大部分情况下该怎么做,但在某些时候,其中一个步骤是在 C/C++ 配置中打开调试首选项并填写调试器所在的路径。不幸的是,这个选项甚至没有出现在我面前:
为什么 "GDB" 选项没有出现在 Preferences >> C/C++ >> Debug 下?如果我没记错的话,它应该是 CDT 包的一部分,对吗?我只是使用了错误的版本吗?它应该给我这个选项:
的作者 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.
我是 Mac 的新手,但我认为这不是由此产生的问题。我一直在尝试将 GDB 设置为在 Eclipse 上使用 golang 进行编程的调试器。我知道大部分情况下该怎么做,但在某些时候,其中一个步骤是在 C/C++ 配置中打开调试首选项并填写调试器所在的路径。不幸的是,这个选项甚至没有出现在我面前:
为什么 "GDB" 选项没有出现在 Preferences >> C/C++ >> Debug 下?如果我没记错的话,它应该是 CDT 包的一部分,对吗?我只是使用了错误的版本吗?它应该给我这个选项:
对于任何来这里寻找答案的人: 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.