Last login: Tue Nov 24 09:01:52 2026 on ttys000
cat open-source/gpui-devtools.md
gpui-devtools
Inspect and debug GPUI applications
Overview
gpui-devtools is an inspector for GPUI applications, written in Rust. It adds an element picker, layout information, source locations, computed values and style details, plus a Keyboard tab showing the focus state, key contexts, available actions and recent keystrokes.
Install
[features]
devtools = [
"dep:gpui-devtools",
"gpui/inspector"
]
[dependencies]
gpui = { package = "gpui-pre", version = "0.3" }
gpui-devtools = { version = "0.6", optional = true }
Use
app.run(|cx| {
#[cfg(feature = "devtools")]
gpui_devtools::init(cx);
});
Toggle the inspector with cmd-alt-i on macOS and ctrl-alt-i elsewhere.