GNOME Bugzilla – Bug 320017
Add G_DEBUG=fatal_criticals
Last modified: 2005-11-04 19:08:14 UTC
In the hope of fixing all critical errors in application, I made a patch to add G_DEBUG=fatal_criticals. Patch was done against the 2.8 branch of glib.
Created attachment 53965 [details] [review] patch
with this, we would have a "fatal-criticals" option blocking only criticals, and a "fatal-warnings" blocking warnings *and* criticals. I think that "fatal-warnings" should do as the name implies, and block on g_warning(), while "fatal-criticals" should block on g_critical(). this could be an API breakage - even though it's not strictly an API issue.
Added to both branches 2005-11-04 Matthias Clasen <mclasen@redhat.com> * glib/gdebug.h: add new GDebugFlag for fatal_criticals * glib/gmessages.c: (_g_debug_init): handle G_DEBUG=fatal_criticals, to help find critical warnings in applications. (#320017, Vincent Untz)