Howto see kDebug messages from apps

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sun Dec 23 16:08:55 CET 2007


Andreas Pakulat schrieb:
> On 22.12.07 20:19:01, Ralf Habacker wrote:
>> Ralf Habacker schrieb:
>>> Ralf Habacker schrieb:
>>>> Andreas Pakulat schrieb:
>>>>> On 22.12.07 17:14:47, Christian Ehrlicher wrote:
>> Got the reason. it is because QT_NO_DEBUG is set for RelWithDebInfo 
>> build mode.
>>
>> If one prepends
>>
>> #include <QtCore/QDebug>
>> #undef QT_NO_DEBUG
>>
>> before the line
>> #include "kdebug.h"
>>
>> all debug messages are printed.
>>
>> The question is now how to enable this messages in RelWithDebInfo build 
>> mode.
> 
> I think this might have been done on purpose, you should check with
> kde-core-devel or kde-buildsystem wether QT_NO_DEBUG should be not
> defined in that buildtype. After all the main use-case for that
> buildtype is to get meaningful backtraces without the extra-large
> binaries.
> 
stop!
we need QT_NO_DEBUG for ReleaseFoo - builds. Otherwise you won't be able
to load qt-plugins because the t plugin loading code checks for
release/debug and fails when QT_NO_DEBUG is not set correct.


Christian




More information about the Kde-windows mailing list