Debuggers are great, but having to step through code is not always ideal. Good strategical debug output can save you a lot of time when trying to track down an issue. Especial if the debugging is being done by a non-developer.
As you probably know, adding a debug trace in Qt is child's play. Just do a
#include <QtDebug>
and then put a
qDebug() << "This is a debug message";
wherever you need it.
To compile Kisa with debug symbols just execute these commands in the extracted source folder;
qmake
make debug
To start the debug enabled version just call
bin/kisa
, no need to install it. Some of the paths might not be correct, especially for the country_language_mappings.txt
, but now you have debug output to track down the issue.That's it!
0 comments:
Post a Comment