Skip to main content

Module devtools

Module devtools 

Source
Expand description

Devtools, as a plugin (DevtoolsPlugin, opt-in): the debug bridge’s collectors shown in the application itself, in a panel of the workbench (egui_pop.devtools, bottom), behind a setting (developer.devtools, off by default) so end users never meet it; an application shown to developers turns it on by default (DevtoolsPlugin::on_by_default). Shift+F12 (View > Devtools) opens it when the setting is on. Not F12: browsers open their own developer tools with it before a web build sees it, as they take Ctrl+Shift+C, I, J, K (Cmd+Option on a Mac) and Shift+F5, F7, F9.

Experimental: may change in any release (docs/stability.md).

Tabs: the key resolutions (each binding considered and its verdict), the journal’s last events, the steps and their hooks, the focus chain and the overlays, the scale of each window, and every collector as JSON with its actions (an action that mutates says so).

The inspect mode (inspect, devtools.inspect, Ctrl+Shift+F12): click an element to see what egui-pop knows of it, and copy it.

Steps (ADR 0011): devtools.call ({ "collector", "action", "args" }): a collector action run from the panel (call); a plugin may veto it (an action too dangerous to offer in the panel). The panel is the user’s: its default calls the action as the user (AppHandle::debug_call_as), through the debug.call step every call of the bridge goes through, so a veto there (a kiosk build) covers the panel and agents alike.

Modules§

inspect
Devtools’ inspect mode: click an element (or reach it with Tab and the arrows, then Enter) and a dialog says what egui and egui-pop know of it, with a Copy button, so that a misbehaving element can be named precisely in a report.

Structs§

DevtoolsPlugin
The plugin.

Constants§

CMD_DEVTOOLS
Opens or closes the panel.
PANEL_DEVTOOLS
The panel.
SETTING_DEVTOOLS
The setting that lets devtools open.
STEP_CALL
A collector action run from the panel.
TABS
The tabs.

Functions§

call
Runs a collector’s action as the panel’s buttons do: through the devtools.call step, whose default calls it as the user (Origin::User) through the debug.call step.
enabled
Whether the setting lets devtools open.