1 ## Making warnings fatal
3 See [Running GLib Applications](http://developer.gnome.org/glib/stable/glib-running.html) for notes on how to make GTK warnings fatal.
5 ## Using GTK Debug packages
8 sudo apt-get install libgtk2.0-0-dbg
10 Make sure that you're building a binary that matches your architecture (e.g. 64-bit on a 64-bit machine), and there you go.
13 You'll likely want to get the source for gtk too so that you can step through it. You can tell gdb that you've downloaded the source to your system's GTK by doing:
17 $ apt-get source libgtk2.0-0
19 (gdb) set substitute-path /build/buildd /my/dir
22 NOTE: I tried debugging pango in a similar manner, but for some reason gdb didn't pick up the symbols from the symbols from the -dbg package. I ended up building from source and setting my LD\_LIBRARY\_PATH.
24 See LinuxBuildingDebugGtk for more on how to build your own debug version of GTK.
27 http://chipx86.github.com/gtkparasite/ is great. Go check out the site for more about it.
31 sudo apt-get install gtkparasite
34 And then run Chrome with
36 GTK_MODULES=gtkparasite ./out/Debug/chrome
40 If you're within the Google network on ghardy, which is too old to include gtkparasite, you can do:
42 scp bunny.sfo:/usr/lib/gtk-2.0/modules/libgtkparasite.so /tmp
43 sudo cp /tmp/libgtkparasite.so /usr/lib/gtk-2.0/modules/libgtkparasite.so
49 14:43 < xan> mrobinson: there's a way to run GTK+ without grabs fwiw, useful for gdb sessions
50 14:44 < xan> GDK_DEBUG=nograbs