C++ – Eclipse C++ GDB debugger for Mac

ceclipsegdbmacososx-mavericks

i've been trying for a whole day to use Eclipse but i failed every time.
I know that i may be wrong and i do know that there are a lot of people out there who are working hard for an open source project, but if i can't use a program, run and debug an "Hello world" file, there must be something wrong.

I'm using OSX 10.9.5 (yeah, maybe using a mac is my first error, right?).

Every time i try to debug the "Hello World.cpp" program i get the following error.

http://imgur.com/RgXCSyW

Yes, i've searched everywhere on google.
Yes, i've already seen the other replies on a similar topic and i've already tried the solutions they offered. Sadly, it didn't work.

Thanks guys for your patience, i hope to learn how to code and maybe being helpful to others one day.

Luca

p.s. writing the error so other people who are googling it can find it

"
Error in final launch sequence
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Unable to find Mach task port for process-id 33383: (os/kern) failure (0x5).\n (please check gdb is codesigned – see taskgated(8))
Unable to find Mach task port for process-id 33383: (os/kern) failure (0x5).\n (please check gdb is codesigned – see taskgated(8))
"

Best Answer

There is another option to debug you code using LLDB debugger. You can check this link for install the LLDB debugger integration. It is super easy and does the work.

Btw The GDB debugger is part of GNU. Xcode does not use GNU tools (gcc, gdb) anymore. Xcode uses LLVM. LLVM's debugger is LLDB. Some info about it: apple developers, The LLDB Debugger Probably your problem has been solved, but sharing another solution to others cant be bad :)

This is relevant to macOS Sierra also.

Related Topic