Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Showing GTK debug log messages

Tags:

c

logging

gtk

I'm sort of new to GTK+, and I'm starting my first project (a window manager). My question is this: I write a program that has a lot of debug messages, written as:

g_debug("foo");
...
g_debug("bar");

I'm just wondering how to show them, because they don't show while running the application. I've tried to run the application like this:

./foobar --gtk-debug=all --gdk-debug=all

But the debug messages still don't show. I'm sure I'm missing something, but I can't seem to find the way (googled a lot before asking this, trust me).

Thanks in advance!

like image 716
MiJyn Avatar asked Dec 09 '12 18:12

MiJyn


1 Answers

Try setting the G_MESSAGES_DEBUG environment variable to 'all'

G_MESSAGES_DEBUG=all ./foobar
like image 199
alexmurray Avatar answered Nov 13 '22 14:11

alexmurray