GtkInspector is the built-in interactive debugging support in GTK+. It was added in GTK+ 3.14, based on a copy of the well-estabishedgtkparasite.
To enable the debugger, you can use the Control-Shift-I or Control-Shift-D keyboard shortcuts, or include the valueinteractive in the GTK_DEBUG environment variable. The keyboard shortcuts can be disabled with theenable-inspector-keybinding key in theorg.gtk.Settings.Debug GSettings schema.
GtkInspector is already pretty useful, but it could be even better. Here are some ideas for things to work on, in no particular order. Your help is appreciated!
Link from GtkActionable::action-name properties to the action they refer to
Show GObject memory statistics: how many objects of each type are alive. Needs support in GObject354457
Show mainloop statistics: how many sources are attached, how often do they fire, how long they take ... Needs support in GLib710723
Bring back scripting. gtkparasite has support for python scripting. The code is still there in the inspector, just not enabled to avoid a python dependency. May base it onhttps://git.gnome.org/browse/archive/gscript instead ?
Projects/GTK+/Inspector (last edited 2014-05-23 15:08:57 byMatthiasClasen)