Eclipse CDT, cannot use debugger (always stuck on 89% process)

If I run the debugger, it is stuck on the 89% process ... It shows

Launching : Configuring GDB Aborting configuring GDB 

I just wanted the debugger to work, so all I have is

 printf("debug test"); 

in the main function. Do you guys know what the problem is?

+6
eclipse eclipse-cdt
source share
4 answers

hi after he experienced the same thing, it turned out that gdb does not have access to some dll (libexpat-1.dll). putting it on the current path, fixed the problem. to check this, try calling gdb from the command line

all the best

Russian salad

+1
source share

I spent quite a lot of time on this. This is really annoying and the solution is stupid for me:

Environment:

Mac + Eclipse + gdb (ggdb downloaded from macports).

Problem:

Debugging freezes at 100% on startup. launching gdb aborting configuring gdb .

Solution: run as root

sudo /Applications/Eclipse.app/Contents/MacOS/eclipse

+7
source share

I also encountered this error on Mac Mavericks. After which gdb I realized that the path set in the Eclipse Debug Configuration is incorrect. Somehow I mistakenly installed it on /usr/local/bin/gdb , which should be /usr/bin/gdb

+1
source share

I believe the answer lies in code encoding, and the problem is related to Apple’s system security changes. See this answer which fixed the same issue for me. Running Eclipse with sudo ( as recommended above ) should probably be discouraged due to the potential risks associated with your IDE running as root.

+1
source share

All Articles