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



On Mon, 2014-02-17 at 16:44 +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?

Sorry for my english
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

If your UI is hand-coded, and in main() (not using GtkApplication), then
I suppose you can run it through gdb and step through each line to see
where it prints the error. Be sure to compile with -Og -g and without
optimisations though
-- 
Marco Scannadinari <m scannadinari co uk>



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