User forums > Help
Toolchain executables: correct, but unable to debug
ParanoidAndroid:
Hi all, posting on here is my last resort, right before I give up :( I have searched all day and tried all sorts but still haven’t got anywhere. My problem is that I cannot get the CodeBlocks to debug anything.
I have MinGW installed, and gdb.exe is as it should be, in the bin folder of MinGW. The ‘Toolchain executables’ tab of the ‘Global compiler settings’ includes the correct path to MinGW (C:\CodeBlocks\MinGW) and gdb.exe is in C:\CodeBlocks\MinGW\bin.
Every time I try to run the debugger I get the message:
---------------------------
Error
---------------------------
The debugger executable is not set.
To set it, go to "Settings/Compiler and debugger", switch to the "Programs" tab,
and select the debugger program.
---------------------------
OK
---------------------------
Obviously, the problem is that I know it is set, and I know the path is correct and that the file does indeed exist.
I’m creating a small game in Allegro and I am fairly new to all this, though I have dabbled in C some years ago. Allegro is set up and working fine, the game compiles and runs perfectly; it’s just that without a working method of debugging I feel there is no point continuing as I know that at some point I’m going to need it :(
I’m using:
Windows XP Pro
CodeBlocks 8.02 (Built Feb 27 2008)
Any help would be most welcome! And sorry if this is covered somewhere else, I’ve searched the forums etc and searched the web but haven’t found a solution all day.
Thanks
Addition
----------
.. just in case it's useful, the output in the debugger window when I try and debug is:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Aborted
... error message (as above) also displayed
killerbot:
just to be sure : ............; C:\CodeBlocks\MinGW - where dbg.exe is located).
you mean gdb.exe right ???
ParanoidAndroid:
Yeah, gdb.exe. Just a typo in my post above. I most definately have got gdb.exe in the Debugger field.... just checked again to make sure! Thanks
ParanoidAndroid:
Just in-case... I'm off to sunny (I'm hoping) Cornwall in southern England tomorrow, for a week. So if I suddenly seem to dissapear I'm not being rude. If I can't get this problem sorted out in the morning sometime, I'll have another go when I get back :) Cheers.
MortenMacFly:
--- Quote from: ParanoidAndroid on August 04, 2009, 11:00:20 pm ---Yeah, gdb.exe. Just a typo in my post above. I most definately have got gdb.exe in the Debugger field.... just checked again to make sure!
--- End quote ---
Notice that the debugger does not ship with the usual GCC distro but has to be installed separately. So if you installed the GCC/G++ package from MinGW.org you did *not* install the debugger yet. Are you 100% sure that in the folder C:\CodeBlocks\MinGW\bin there is really the executable "gdb.exe"? And are you 100% sure that for your project *and* target(s) you are using exactly the compiler you've setup?
Navigation
[0] Message Index
[#] Next page
Go to full version