Mac C++/Mars eclipse gdb debug launching stuck at 96%

試著忘記壹切 提交于 2019-12-11 01:43:51

问题


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


回答1:


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

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

So do this:

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

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.



来源:https://stackoverflow.com/questions/37760879/mac-c-mars-eclipse-gdb-debug-launching-stuck-at-96

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!