Author Topic: Suddenly gdb.exe disappeared, "The debugger executable is not set."  (Read 5402 times)

NewCBUser123

  • Guest
Wow this is weird  :shock:

I was programming like everyday, then for the first time ever, CB just crashed and was shut down for no reason and without any information.
And I swear, I was not doing anything unnormal, it just crashed while I was writing code, I was doing nothing special.

Since then, CB won't work any more. I always get the message "The debugger executable is not set. To set it...". When I check the Toolchain Executables, as the messagebox says, I see that "gdb.exe" is set as debugger. But if I click on the little browse icon, I can see that this file isn't there (at C:\MinGW\bin\). It is just not there.

Ok I have uninstalled and re-installed safely both CB and MinGW and still, the same problem. Also the gdb.exe really isn't anywhere.
The point is, why is this happening? Is the gdb.exe supposed to be there?? Why did this work ever before? I never had to install the gdb.exe manually or anything.

I am really really worried PLEASE help me  :cry:

By the way, here are my specs:

Windows 7 Professional x64
C::B Nightly Build 2010.01.02 or 2010.01.12 (both the same problem)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Suddenly gdb.exe disappeared, "The debugger executable is not set."
« Reply #1 on: January 14, 2010, 01:15:36 pm »
Install the debugger; the problem has nothing to do with Code::Blocks.

Find the directions to install the gdb.exe for your MinGW GCC compiler.

Best Guess as right link for gdb.exe
http://sourceforge.net/projects/mingw/files/GNU%20Source-Level%20Debugger/Release%20Candidate_%20GDB%206.8-3/gdb-6.8-mingw-3.tar.bz2/download

Not sure which gdb.exe works best with Code::Blocks right now.

NOTE: The cause of problem is likely that fact that mingw.ini is missing gdb.exe feel free to report issue to the MinGW Group. http://www.mingw.org/mingw.ini

Tim S.
« Last Edit: January 14, 2010, 01:30:43 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

NewCBUser123

  • Guest
Re: Suddenly gdb.exe disappeared, "The debugger executable is not set."
« Reply #2 on: January 14, 2010, 03:56:19 pm »
Yeah I tried to install the gdb.exe manually, but then when running my program in debug mode (F8) it always stops before the program even starts. The debug log tells me something like "At C:\Windows\System32\......" and then nothing happens until I press stop.
I have tried this with different gdb's and it always is the same problem but the "At " path and filename is always different.

The point is, why did this work ever before?

Anyway, it DOES work now, as I installed the one you linked, so, thanks a lot!!

Still it is mysterious that the gdb.exe just disappeared for no reason.....