Re: How to locate the 'Gtk-WARNING' line number



On Mon, Feb 17, 2014 at 04:44:53PM +0800, Wiky wrote:
 Hi,all. I'm currently writing a program based Gtk+-3.0.
When it runs, I get '(a.out:10874): Gtk-WARNING **: Failed to ...' in the terminal.
I know the problem is about GtkLabel, but I really don't know which GtkLabel.
Is there a way to locate the line numer that give the warning?

Run it with G_DEBUG=fatal-warnings, let it dump core and look at the
stack trace.

Yeti



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