denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] g_debug


From: Jeremiah Benham
Subject: Re: [Denemo-devel] g_debug
Date: Sat, 12 Feb 2011 12:03:01 -0600

./configure --enable-debug should turn DEBUG on. g_debug should only work if built with debug enabled. It's not exactly the same --enable- debug passes I thing the -g to gcc and -DDEBUG. I think g_debug works only when -g is passed to the compiler.

Jeremiah

On Feb 12, 2011, at 11:00 AM, Richard Shann <address@hidden> wrote:

Jeremiah,

the g_debug output has been turned on for my build params, there was a
handler that intended (by the look of the code) for DEBUG to control it.
But the handler setting has gone, and now it's on all the time.
How do you turn it off? The docs are mute.
Richard
this is the change:

debug_handler (const gchar *log_domain, GLogLevelFlags log_level,

               const gchar *message, gpointer user_data)

{

-#ifdef DEBUG

-  g_print (message);

-#endif

+  //g_debug ("%s",message);

}





@@ -438,7 +436,8 @@ main (int argc, char *argv[])

//#endif



   /* set the default handler for debug messages */

-  g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, debug_handler, NULL);

+  //FIXME this does not work

+  //g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, debug_handler, NULL);




_______________________________________________
Denemo-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/denemo-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]