I was able to execute my program from KDevelop IDE via F9.
However when I set a breakpoint on the 1st executable line and try to run the debugger, it crashes with the following error displayed in the pop-up window:
“GDB Exited abnormally. This is likely a bug in GDB…”
The GDB pane displays the following:
gdb /home/Source/HelloWorld/debug/./src/helloworld --interpreter=mi2 -quiet
Using host libthread_db library “/lib/libthread_db.so.1”.
(gdb) Process exited
I sort of suspected that.
How do I turn on the debug information for my KDevelop project?
Do I have to edit one of the make rules in the Makefile or there are some KDevelop settings that can be changed?
this depends on your project if it is automake or qmake you have to switch debug on in the automake/qmake manager. If you are using custom make files you have to add the compiler flags for debug direct in the make file.