Mac C ++/Mars Eclipse GDB调试启动卡在96% [英] Mac C++/Mars eclipse gdb debug launching stuck at 96%

查看:40
本文介绍了Mac C ++/Mars Eclipse GDB调试启动卡在96%的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Mac OS X El Capitan上设置GDB.我已经在Eclipse中设置了路径(Preference-> C/C ++-> GDB->/usr/local/bin/gdb).尝试调试简单的hello world程序.但它停留在96%(请参阅图片右下角).] 3

I am trying to setup GDB on Mac OS X El Capitan. I have already set the path in Eclipse (Preference->C/C++->GDB-> /usr/local/bin/gdb). Trying to debug simple hello world program. but its stuck at 96% (refer image bottom right side). ]3

推荐答案

我正在运行sierra 10.12.4,据我所知,苹果已经完全破坏了运行gdb的能力.

I'm running sierra 10.12.4, and apple has completely destroyed the ability to run gdb as far as I can tell.

经过一番摸索,看来eclipse中的lldb支持虽然仍被标记为实验性的(在霓虹灯3中),但效果很好.

After poking around it seems that the lldb support in eclipse, though still labeled experimental (in neon 3), works well enough.

这样做:

http://wiki.eclipse.org/CDT/User/FAQ#How_do_I_get_the_LLDB_debugger.3F

,然后可以进行调试.基本上,您安装了lldb支持,然后在调试配置中将启动器类型设置为lldb设置,并且可以正常运行.有点慢,但是可以用.

and then you can debug. Basically, you install the lldb support, and then set the launcher type to the lldb setting in debug configs and it works. It's kinda slow, but it works.

这篇关于Mac C ++/Mars Eclipse GDB调试启动卡在96%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆