eclipse - 在 mac 上的 Eclipse 中找不到 GDB 选项

标签 eclipse debugging go gdb preferences

我是 Mac 的新手,但我认为这不是由此产生的问题。我一直在尝试将 GDB 设置为在 Eclipse 上使用 golang 进行编程的调试器。我知道大部分情况下该怎么做,但在某些时候,其中一个步骤是在 C/C++ 配置中打开调试首选项并填写调试器所在的路径。不幸的是,这个选项甚至没有出现在我面前: enter image description here

为什么“GDB”选项没有出现在首选项 >> C/C++ >> 调试下?如果我没记错的话,它应该是 CDT 包的一部分,对吗?我只是使用了错误的版本吗?它应该给我这个选项:

enter image description here

至少对于 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/

相关文章:

java - IClassFile 注释

eclipse - Eclipse Oxygen 中的颠覆性 SVN 连接器安装失败

java - Intellij IDEA 的包资源管理器就像在 Eclipse 中一样

android - 当我尝试调试时应用程序崩溃

java - 如何在 Eclipse Debug模式下转到函数调用

go - 无法在 Go 中使用 httputil.ReverseProxy 同时使用自定义 RoundTrip 和 Dial

具有浮点值的 Golang 查询无法正常工作

戈兰 : composite literal uses unkeyed fields

安卓模拟器无法启动

windows - 在windows上捕获子进程异常