debugger for c++ using eclipse on mac
13,601
You have got several options:
- Install GDB with MacPorts or Homebrew, as mentioned by trojanfoe and Charles Chow.
- Use LLDB-MI from LLDB team; note that LLDB-MI does not come with the native LLDB on OS X, meaning you have to build LLDB your own with options to switch on the feature.
- Use third-party LLDB-MI2 (see the page for reasons why he needs another Machine Interface)
All of these three options require a lot of configuration and are error-prone. I guess you may want to think twice when you prefer Eclipse to Xcode on OS X.
Author by
Roy Weinstein
Updated on July 08, 2022Comments
-
Roy Weinstein almost 2 years
After I finally setup my mac to work with eclipse, I can't debug.
I've tried to google for help but non of the answers worked for me.
so, I need someone to help me install and use a debugger on eclipse for c\c++.
I have Xcode 5.0 installed.
Thanks for your help
Roy
-
Anya Shenanigans over 10 yearsbrew.io - much nicer interface than macports and it doesn't want root privileges to run
-
trojanfoe over 10 years@Petesh Each to his own, but I prefer macports.
-
Roy Weinstein over 10 yearsI cant find any tutorial explaining how to install macports on OSX mavericks.
-
trojanfoe over 10 years@RoyWeinstein Ah, yeah that will be a problem as I don't believe they've released for Mavericks yet. I run on my Mavericks using the "trunk" version of macports which works fine. Check this: trac.macports.org/wiki/howto/RunningTrunk