Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-09-23 13:44:15

bubblebobble
Member
From: Italy
Registered: 2012-02-08
Posts: 24

[Solved] How to compile a panel plugin enabling the DBG() macro

Hello,

I am doing the first experiments to compile a panel plugin.
If I start a debug panel session with "PANEL_DEBUG=1 xfce4-panel" or "PANEL_DEBUG=all xfce4-panel", then I can't see any output of the macro DBG() which is supposed to print debug messages on stdout.

I can see my debug messages if, instead, I use g_message()

I guess I am missing a switch in the ./configure command

Anyone can help me? There isn't much information concerning how to develop a panel plugin starting from zero and I am facing some difficulties.

Thank you.

Offline

#2 2013-09-23 14:59:15

eric_the_idiot
Member
Registered: 2011-12-23
Posts: 58

Re: [Solved] How to compile a panel plugin enabling the DBG() macro

When you compile the xfce4-dev-tools and the xfce4-panel make sure you pass: ./autogen.sh --enable-debug=full (or ./configure --enable-debug=full) that will turn on the DBG and TRACE macros. You won't need --enable-debug=full for any of the others unless you want to debug them.

Offline

#3 2013-09-24 10:39:40

bubblebobble
Member
From: Italy
Registered: 2012-02-08
Posts: 24

Re: [Solved] How to compile a panel plugin enabling the DBG() macro

Thank you Eric, it works!

Effectively after the ./autogen.sh --enable-debug=full I get now:

* Debug Support:     full

instead of

* Debug Support:     minimal

Offline

#4 2013-09-24 10:44:04

bubblebobble
Member
From: Italy
Registered: 2012-02-08
Posts: 24

Re: [Solved] How to compile a panel plugin enabling the DBG() macro

But is there any difference between DBG and TRACE macros?

I just gave it a try, haven't look at the code yet. The print format seems to be the same.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 521.84 KiB (Peak: 529.35 KiB) ]