Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugger for C++ eclipse gives the following error. 'Launching program name' has encountered a ... Error while launching command: gdb --version

I've always worked around the debugger issue, but now it has gotten too annoying. I'm working on more complex programs and can't anywhere if I cant debug my programs. Has any one else been able to fix this issue in eclipse? It works for java, but not more my C++ plugin from minGW

Debbugger for C++ eclipse gives the following error. 'Launching program name' has encountered a problem. Error while launching command: gdb --version

like image 696
user2748943 Avatar asked Oct 02 '22 07:10

user2748943


1 Answers

Assuming you are using Windows and have MinGW installed, you only need to locate the gdb executable in the MinGW bin folder. This can be done on the "Main" tab in the "Debugger" configuration of Eclipse:

gdb configuration of eclipse

like image 158
alu Avatar answered Oct 17 '22 18:10

alu