[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    Re: can't find the output of kDebug()
From:       Tsiapaliwkas Giorgos <terietor () gmail ! com>
Date:       2011-03-03 6:09:46
Message-ID: 201103030809.47094.terietor () gmail ! com
[Download RAW message or body]

i am sorry for lating to respawn.

On Tuesday, March 01, 2011 10:49:46 PM Thomas Lübking wrote:
> errr... i don't quite understand that. as i understood your former mail
> you could not get kDebug output while qDebug worked - now qDebug does no
> more work for you?

either with qdebug or with kdebug i can't get a debug output.

i have added to the "taskbarthumbnail" effect this "kDebug(1212) << "Giorgos"" 
and then i gave the command 'kwin --replace | grep Giorgos' and the output was 
this,

$ kwin --replace | grep -i "Giorgos"                                                  \
 kwin(18337) Kephal::DesktopWidgetScreens::DesktopWidgetScreens: foo
kwin(18337) KWin::Extensions::init: Extensions: shape: 0x "11"  composite: 0x 
"4"  render: 0x "a"  fixes: 0x "40"
kwin(18337) KWin::CompositingPrefs::detect: glx version is  1 . 4
kwin(18337) KDecorationPlugins::loadPlugin: kwin : path  
"/usr/lib64/kde4/kwin3_oxygen.so"  for  "kwin3_oxygen"
kwin(18337) KWin::Extensions::init: Extensions: shape: 0x "11"  composite: 0x 
"4"  render: 0x "a"  fixes: 0x "40"
kwin(18337) KWin::Extensions::init: Extensions: shape: 0x "11"  composite: 0x 
"4"  render: 0x "a"  fixes: 0x "40"
kwin(18337) KWin::Workspace::setupCompositing: Initializing OpenGL compositing
kwin(18337) KWin::SceneOpenGL::initBufferConfigs: Drawable visual (depth  24 
): 0x "49"
kwin(18337) KWin::SceneOpenGL::initBufferConfigs: Drawable visual (depth  32 
): 0x "64"
kwin(18337) KWin::SceneOpenGL::initBuffer: Buffer visual (depth  24 ): 0x "47"
kwin(18337) KWin::SceneOpenGL::SceneOpenGL: DB: true , TFP: true , SHM: false 
, Direct: true
kwin(18337) KWin::currentRefreshRate: Refresh rate  60 Hz
kwin(18337) KWin::EffectsHandlerImpl::loadEffect: Trying to load  
"kwin4_effect_login"
kwin(18337) KWin::EffectsHandlerImpl::loadEffect: Trying to load  
"kwin4_effect_taskbarthumbnail"
kwin(18337) KWin::Client::readUserTimeMapTimestamp: User timestamp, ASN: 
1280908
kwin(18337) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 
'ID: 29360634 ;WMCLASS: "plasma" : "plasma" ;Caption: "plasma-desktop" ' : 
1280908
kwin(18337) KWin::Workspace::allowClientActivation: Activation: No client 
active, allowing
kwin(18337) KWin::Workspace::updateClientArea: screens:  1 desktops:  4
kwin(18337) KWin::Workspace::updateClientArea: Done.
kwin(18337) KWin::Client::readUserTimeMapTimestamp: User timestamp, ASN: 
4294967295
kwin(18337) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 
'ID: 2097186 ;WMCLASS: "xterm" : "xterm" ;Caption: "xterm" ' : 
18446744073709551615
kwin(18337) KWin::Workspace::allowClientActivation: Activation: No client 
active, allowing
kwin(18337) KWin::Workspace::updateClientArea: screens:  1 desktops:  4
kwin(18337) KWin::Workspace::updateClientArea: Done.
kwin(18337) KWin::Workspace::createTile: Now tiling  "xterm"
kwin(18337) KWin::Client::readUserTimeMapTimestamp: User timestamp, ASN: 
1335115
kwin(18337) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 
'ID: 119537694 ;WMCLASS: "konsole" : "konsole" ;Caption: "kde-devel : bash" ' 
> 1335115
kwin(18337) KWin::Workspace::allowClientActivation: Activation: No client 
active, allowing
kwin(18337) KWin::Workspace::updateClientArea: screens:  1 desktops:  4
kwin(18337) KWin::Workspace::updateClientArea: Done.
kwin(18337) KWin::Workspace::createTile: Now tiling  "kde-devel : bash"
kwin(18337) KWin::Client::readUserTimeMapTimestamp: User timestamp, ASN: 
1332621
kwin(18337) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 
'ID: 29360631 ;WMCLASS: "plasma" : "plasma" ;Caption: "plasma-desktop" ' : 
1332621
kwin(18337) KWin::Workspace::allowClientActivation: Activation: No client 
active, allowing
kwin(18337) KWin::Workspace::updateClientArea: screens:  1 desktops:  4
kwin(18337) KWin::Workspace::updateClientArea: Done.
kwin(18337) KWin::Workspace::updateClientArea: screens:  1 desktops:  4
kwin(18337) KWin::Workspace::updateClientArea: Done.
kwin(18337) KWin::Client::readUserTimeMapTimestamp: User timestamp, ASN: 
1332621
kwin(18337) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 
'ID: 29460736 ;WMCLASS: "plasma-desktop" : "plasma-desktop" ;Caption: "plasma-
desktop" ' : 1332621
kwin(18337) KWin::Workspace::allowClientActivation: Activation, compared: 'ID: 
29460736 ;WMCLASS: "plasma-desktop" : "plasma-desktop" ;Caption: "plasma-
desktop" ' : 1335294 : 1335294 : true
kwin(18337) KWin::Workspace::updateClientArea: screens:  1 desktops:  4
kwin(18337) KWin::Workspace::updateClientArea: Done.

 
i cannot understand this output.The grep command should have to work as filter 
for the keyword "Giorgos" but it didn't.why?

Scaning the output (reading it) there is no output for "Giorgos".

> That's for the process. In kwins case kwin and kwin(1212) are more or less
> the same, but you might wish to debug kdeui(129) but only for dolphin,
> then you check kdeui(129) as well as dolphin.
> Long story short, just check both to get output.

thank you for explaining that to me.

P.S.:i have added the code 'kDebug(1212) << "Giorgos" at every function of the 
effect,including the constructor and the destructor.

P.S.2:thanks again for helping me :)
_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic