Code::Blocks Forums
User forums => Help => Topic started by: Lord Yu on July 30, 2005, 11:22:27 am
-
Hi all,
I'm unfamiliar with MinGW debugger :( , when I go to debug I get an debugger executable not set error, so I go to the settings/configure plugins/compiler :?.
If it is a debugging problem should I go to the GDB debugger instead, if so what are the debugging commands?
Thanks
-
Go to "Settings->Compiler->Programs" and make sure "Debugger" is set to "gdb.exe".
gdb.exe must exist in the configured "Compiler's installation directory", in the "bin/" subdir.
Yiannis.
-
Same problem here. The code compiles (MingW) but the debugger claims 'The debuger executable is not set'. Settings are ok (otherwise it wouldn`t compile). Maybe it's a problem specific to Win98. :?
-
Maybe it has something to do with this:
Note for Win98/ME users:
Debugging with Code::Blocks-MinGW bundle under Windows 98/ME will not work out of the box for you. This is because we 've updated the included GDB to version 6.3 which works on NT-class machines only (NT/2000/XP/2003).
All is not lost however. You can go to the MinGW site (http://www.mingw.org) and download an older GDB version which works for Windows 98/ME. Code::Blocks will happily use it, as long as you install it in the Code::Blocks installation folder ;)
Do you use C::B with MinGW bundle?
-
Maybe it has something to do with this:
Note for Win98/ME users:
Debugging with Code::Blocks-MinGW bundle under Windows 98/ME will not work out of the box for you. This is because we 've updated the included GDB to version 6.3 which works on NT-class machines only (NT/2000/XP/2003).
All is not lost however. You can go to the MinGW site (http://www.mingw.org) and download an older GDB version which works for Windows 98/ME. Code::Blocks will happily use it, as long as you install it in the Code::Blocks installation folder ;)
Do you use C::B with MinGW bundle?
gdb --v shows:
GNU gdb 5.2.1
Shall I copy gdb.exe to the Code::Blocks installation folder? Sounds strange ... :?
-
No, copy gdb.exe where your MinGW installation is (this is, replace the gdb.exe with your own copy)
-
No, copy gdb.exe where your MinGW installation is (this is, replace the gdb.exe with your own copy)
That's what I have now. MinGW\bin contains both
mingw32-c++.exe (3.4.2)
gdb.exe ( 5.2.1)
Code compiles but the debugger doesn't start (see above). It seems that the path to gdb.exe is not set correctly although it's dieplayed correctly in the configuration dialog. Can I enter the path to the debugger manually in a config file?
-
I see...
I think it's got to do with the configuration. I'll research more about it, maybe you found a bug.
In the meantime, add the (path to your MINGW)\bin in "My PC", right click, Properties, advanced options, environment variables, system variables, PATH. (Separate with semicolons).
-
I think it's got to do with the configuration. I'll research more about it, maybe you found a bug.
Another observation:
1. Clean the project manually
2. Open CB and open a Project
3. Press button 'Run' (without compiling before)
4. Message Box Error "Can't find comiler executable in your search path for GNU GCC compiler"
5. Press 'ok'
6. Message Box Information "It seems that this project has not been built yet. Do you want to build in now?"
7. Press 'yes'
8. Compiling ....