Skip to content
Kite

DevTools

Install DevTools during development, before entering the engine loop:

inspector, err := devtools.Install(eng, devtools.Options{
ServerAddr: "127.0.0.1:0",
})
if err != nil {
return err
}
kitexdt.Register(inspector)

Leave ServerAddr unset for the default localhost:8080, or request a loopback ephemeral port as above. The inspector exposes live application state; keep it on loopback. Set DisableServer: true to use only terminal debugging, or DisableXRay: true to leave terminal visuals untouched.

  1. Press Ctrl+D in the app to toggle Terminal X-Ray. Inspect padding, borders, and content bounds where the problem occurs.
  2. Press F12 to open the Web Inspector. Compare the selected logical element with its layout fragments: a missing node and an off-screen node need different fixes.
  3. For a slow interaction, record it in the Performance Profiler. Inspect the frame’s flamechart to see which phase took time. Export a Chrome Trace to examine the recording outside the inspector.

Register the plugins for the layers your app uses, passing the inspector returned by Install: kitexdt.Register(inspector) for component state, kitesdt.Register(inspector) for stores, and winddt.Register(inspector, client) for a Wind cache. Their import paths are extras/kitex/kitexdt, extras/kites/kitesdt, and extras/wind/winddt under the Kite module.