Warning - Old Content
This post is quite old, and it might not apply anymore, or maybe there's a better way to do the same thing nowadays. Take with a big grain of salt.
To get proper debugging working in KDevelop with gdb as a backend, you have to recompile your project with gdb information. The trick is figuring out where/how to do this, especially in an automake-based project.
- Go to: Project -> Project Options -> Configure Options
- Set “C/C++ Preprocessor flags” to be “-g”
- Set “Linker flags” to be “-g”
You then have to re-run automake and friends, then re-run configure, then re-make everything. Very much a pain to recompile all of kdegames yet again, but at least now both kdevelop and gdb let me use breakpoints!
Of course, remember to remove the -g option before building the final version.