Debugger for C ++ using eclipse on mac

After I finally configured my mac to work with eclipse, I cannot debug.

I tried to google for help, but not the answers worked.

so I need someone to help me install and use the debugger on eclipse for c \ C ++.

I have Xcode 5.0 installed.

thanks for the help

Roy

+7
debugging eclipse macos
source share
3 answers

You have several options:

  • Install GDB using MacPorts or Homebrew, as indicated by trojanfoe and Charles Chow .
  • Use LLDB-MI from the LLDB command; note that LLDB-MI does not come with native LLDB on OS X, which means that you need to create LLDB yourself with the parameters for enabling the function.
  • Use a third - party LLDB-MI2 (see page for reasons why it needs a different interface)

All three of these options require a large configuration and are prone to errors. I think you might want to think twice if you prefer Eclipse for Xcode on OS X.

+4
source share

It seems that eclipse does not support lldb , so you should probably ignore the Xcode toolchain and install Macports and g ++ / gdb instead:

 $ sudo port install gcc49 gdb 

In this case, there should only be a case of creating this new toolchain in eclipse; possibly using:

how to add your own CDT eclipse toolchain

(if not google "eclipse cdt configure toolchain")

0
source share

I found this tutorial talks about how to install and configure GDB for eclipse on Mac OS X. It works on my machine. First you need to install Home Brew .

0
source share

All Articles