Eclipse C ++ GDB Debugger for Mac

I have been trying to use Eclipse all day, but I have failed every time. I know that I can be wrong, and I know that there are many people who are working on an open source project, but if I cannot use the program, start and debug the Hello world file, there must be something wrong.

I am using OSX 10.9.5 (yes, maybe using mac is my first mistake, right?).

Every time I try to debug Hello World.cpp, I get the following error.

http://imgur.com/RgXCSyW

Yes, I searched everywhere on Google. Yes, I have already seen other answers on a similar topic, and I have already tried the solutions they offer. Unfortunately, this did not work.

Thank you guys for your patience, I hope to learn how to code and possibly be useful to others one day.

Luca

ps writing down the error so that other people who are searching the Internet can find it

"Error in final startup sequence Failed to execute MI command: -exec run Error message from the back of the debugger: Could not find Mach task port for process ID 33383: (os / kern) failure (0x5). \ N (check that gdb has a code - see Taskgated (8)) Could not find the task port Mach for process ID 33383: (os / kern) failure (0x5). \ N (check that gdb has a code - see Taskgated (8) ) "

+4
source share
2 answers

"" OS X (, -----++). g++ GDB- ( LLVM clang++ LLVM Eclipse OS X). - macports. macports , g++ gdb ()

sudo port install gcc5 # or gcc49

sudo port install gdb

, . ggdb ( gdb), macoprts /opt/local/bin/ggdb.

+2

LLDB. LLDB. .

Btw GDB GNU. Xcode GNU (gcc, gdb). Xcode LLVM. LLVM - LLDB. : Apple, LLDB , , :)

macOS Sierra.

+5

Source: https://habr.com/ru/post/1584993/


All Articles