Debugging KDE applications with gdb

A pretty long time has passed since my last post here, and in the meantime I have jumped right into KDE development myself. I have stumbled upon quite a few tricks and pitfalls that I will undoubtedly write about here some day.

For now, I just want to share a little gem which I have discovered a few minutes ago: In kdesdk/scripts, David Faure published a little script called kde-devel-gdb (view with WebSVN), which extends gdb with the ability to print the contents of several Qt containers, including the widely used QString. Highly recommended!