2010-01-20

Debug Qt Application with gdb

If the Qt application is built in Linux system (Max uses Debian Lenny), you need to just run
  • > gdb app
See the thread http://jingfenghanmax.blogspot.com/2010/01/useful-gdb-commands.html

However, you need to add debug option into makefile by add line into *.pro file
  • CONFIG += config qt
Note: "+=" instead of "=", otherwise, the application may have problem when it tries to load the resource files defined in qrc file.

No comments:

Post a Comment