I am trying to run a simple linked list program in code blocks, but I am not able to run the program and i getting the below error :
Active debugger config: GDB/CDB debugger:
Default Building to ensure sources are up-to-date Selecting target:
Debug ERROR: You need to specify a debugger program in the debuggers's settings.
(For MinGW compilers, it's 'gdb.exe' (without the quotes))
(For MSVC compilers, it's 'cdb.exe' (without the quotes))
I tried some of the posts given here on Stack Overflow, but that setting is already there in the code blocks.
Find out where gdb.exe is located in whatever GCC toolchain you
are using with Code::Blocks, e.g:-
If you can't find it then the root of the problem is that the debugger is (no longer) installed.
If you find it, then enter its full pathname in Settings -> Debugger settings -> GDB/CDB debugger -> Default -> Executable path. Code::Blocks will check the pathname you enter and if it can't find it then the edit-field will turn red. Otherwise, OK out and the debugger will then work.
If the directory containing gdb.exe is in your PATH then you can simply enter gdb.exe in the field.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With