在Mac上的Eclipse中找不到GDB选项。

huangapple go评论102阅读模式
英文:

Can't find GDB option in Eclipse on mac

问题

我是你的中文翻译助手,以下是翻译好的内容:

我对Mac不太熟悉,但我不认为这是由于Mac引起的问题。我一直在尝试在Eclipse上设置GDB作为golang编程的调试器。我大致知道如何操作,但在C/C++配置中打开调试首选项并填写调试器所在路径的某个步骤中,选项甚至没有显示出来:
在Mac上的Eclipse中找不到GDB选项。

为什么“GDB”选项在“Preferences >> C/C++ >> Debug”下没有显示出来?如果我没记错的话,它应该是CDT包的一部分,对吗?我是不是使用了错误的版本?它应该给我提供这个选项:
在Mac上的Eclipse中找不到GDB选项。

至少对于Neil Craft,也就是这个教程的作者,是有这个选项的。

英文:

I'm new to Macs but I don't think this is a problem that comes from that. I've been attempting to set up GDB as a debugger for programming in golang on Eclipse. I know how to do it for the most part, but at some point one of the steps is to open up your debug preferences in the C/C++ configuration and fill in the path of where the debugger is located. Unfortunately, the option doesn't even show up for me:
在Mac上的Eclipse中找不到GDB选项。

Why doesn't the "GDB" option show up under Preferences >> C/C++ >> Debug? If i'm not mistaken, it should be a part of the CDT package correct? Am I just using the wrong version? It should be giving me this option:

在Mac上的Eclipse中找不到GDB选项。

At least it does for Neil Craft, the author of this tutorial

答案1

得分: 3

对于任何寻找答案的人:
https://www.ics.uci.edu/~pattis/common/handouts/macmingweclipse/allexperimental/mac-gdb-install.html#eclipse

如果在C/C++Debug子树中没有GDB部分,请关闭首选项窗口,然后尝试首先启动任何可以正常运行的项目的调试会话。您可以通过单击工具栏上的调试按钮或从主菜单中选择RunDebug来执行此操作。这次尝试当然会失败,并显示有关gdb命令的错误消息,但它将强制在首选项中出现所述的C/C++DebugGDB设置。

英文:

For anyone coming here looking for an answer:
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.

huangapple
  • 本文由 发表于 2015年12月6日 08:11:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/34112474.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定