which is the difference between kDebug() and kDebug(1204)?
Aaron J. Seigo
aseigo at kde.org
Wed Mar 30 17:54:56 CEST 2011
On Sunday, March 27, 2011 23:59:08 Tsiapaliwkas Giorgos wrote:
> hello,
>
> which is the difference between the two above?
>
> And actually in general what i gain/lose if i use a debug area?
you can control what output is shown or not, bu tonly if there is a debug area
used. run: kdebugdialog (with and without --fullmode).
note that in libplasma, kDebug() has a default area, so you don't need to
provide it in each call.
to do the same in your own project, do this in your CMakeLists.txt file:
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209)
and replace the "1209" (that's what we use in libplasma) with some number of
your chosing. voila... all kDebug() calls become kDebug(<your custom debug
area>) automagically.
woot.
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20110330/1f80fa5b/attachment.sig
More information about the Plasma-devel
mailing list