docs: Flesh out the inspector section a bit

This commit is contained in:
Matthias Clasen 2014-05-24 10:07:46 -04:00
parent a13d12a445
commit 1d897a9bf2

View File

@ -532,19 +532,27 @@ nevertheless.
<inlinegraphic fileref="inspector.png" format="PNG"></inlinegraphic> <inlinegraphic fileref="inspector.png" format="PNG"></inlinegraphic>
<para> <para>
GTK+ includes an interactive debugger which lets you explore the GTK+ includes an interactive debugger, called the GTK+ Inspector, which
widget tree of any GTK+ application at runtime, as well as tweak lets you explore the widget tree of any GTK+ application at runtime, as
the theme and trigger visual debugging aids. well as tweak the theme and trigger visual debugging aids. You can
easily try out changes at runtime before putting them into the code.
</para> </para>
<para> <para>
To enable the debugger, you can use the Control-Shift-I or Note that the GTK+ inspector can only show GTK+ internals. It can not
understand the application-specific logic of a GTK+ application. Also,
the fact that the GTK+ inspector is running in the application process
limits what it can do. It is meant as a complement to full-blown debuggers
and system tracing facilities such as DTrace, not as a replacement.
</para>
<para>
To enable the GTK+ inspector, you can use the Control-Shift-I or
Control-Shift-D keyboard shortcuts, or set the Control-Shift-D keyboard shortcuts, or set the
<envar>GTK_DEBUG=interactive</envar> environment variable. <envar>GTK_DEBUG=interactive</envar> environment variable.
</para> </para>
<para> <para>
In some situations, it may be inappropriate to give users access In some situations, it may be inappropriate to give users access to the
to the interactive debugger. The keyboard shortcuts can be disabled GTK+ inspector. The keyboard shortcuts can be disabled with the
with the `enable-inspector-keybinding` key in the `org.gtk.Settings.Debug` `enable-inspector-keybinding` key in the `org.gtk.Settings.Debug`
GSettings schema. GSettings schema.
</para> </para>