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.
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.
Thank you Eric, it works!
Effectively after the ./autogen.sh --enable-debug=full I get now:
* Debug Support: full
* Debug Support: minimal
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.