debugger for c++ using eclipse on mac

13,601

You have got several options:

  1. Install GDB with MacPorts or Homebrew, as mentioned by trojanfoe and Charles Chow.
  2. 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.
  3. 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.

Share:
13,601
Roy Weinstein
Author by

Roy Weinstein

Updated on July 08, 2022

Comments

  • Roy Weinstein
    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
    Anya Shenanigans over 10 years
    brew.io - much nicer interface than macports and it doesn't want root privileges to run
  • trojanfoe
    trojanfoe over 10 years
    @Petesh Each to his own, but I prefer macports.
  • Roy Weinstein
    Roy Weinstein over 10 years
    I cant find any tutorial explaining how to install macports on OSX mavericks.
  • trojanfoe
    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