QT_NO_DEBUG, Q_ASSERT(), and release build types
Armin Berres
trigger at space-based.de
Sun Jan 11 23:39:15 GMT 2009
On Mon, 12 Jan 09 00:15, Ingo Klöcker wrote:
> I don't think keeping kDebug() enabled in release builds is a good idea
> because of highly likely performance problems. At least, not if logging
> kDebug() messages is turned on by default. If logging of debug messages
> was enabled but turned off by default and could easily be turned on by
> the user if necessary (e.g. through kdebugdialog) then I would agree
> that enabling it even in release builds would probably be a good idea.
This is exactly what we do in Debian.
Kdelibs:
<http://svn.debian.org/wsvn/pkg-kde/branches/kde4.2/packages/kdelibs/debian/patches/09_disable_debug_messages_if_not_explicitly_enabled.diff>
Kdebugdialog:
<http://svn.debian.org/wsvn/pkg-kde/branches/kde4.2/packages/kdebase-runtime/debian/patches/04_disable_debug_by_default.diff>
Greetings,
Armin
More information about the kde-core-devel
mailing list