Skip to Content

Debugging

gofasta dev serves a local debugging dashboard alongside your application. It records what each request actually did — the trace waterfall, the SQL it issued, the logs it emitted, the errors it returned — so you can answer “why was this slow?” without adding print statements and restarting.

Everything on this surface is compiled behind a build tag, so production binaries carry none of it.

Pages in this section

  • Overview — What the dashboard captures, the endpoints behind it, and the zero-cost build-tag model.
  • Guided Tour — A realistic session end to end: slow endpoint → trace drill-down → stack → logs → SQL pattern → fix → replay.
  • Dashboard Panels — Reference for every panel: what it shows, where the data comes from, and what you can interact with.
  • Tracing & Waterfalls — What is auto-traced, how to add spans to existing code, wiring SQL as waterfall bars, and instrumenting async tasks and cron jobs.
  • How It Works — The Wire + middleware + OpenTelemetry wiring that provides the visibility without touching business code, plus the endpoint reference and production-safety model.
  • Customization — Ring buffer sizes and rotation, disabling individual devtools hooks, and where the devtools code lives in your project.

Driving it from a terminal or an agent

The same data is available without the browser: gofasta debug exposes the /debug/* endpoints as CLI subcommands — requests, SQL, traces, logs, errors, cache, pprof, EXPLAIN, HAR export — plus composed diagnostics like last-slow-request and last-error. With --json, it is the surface AI coding agents read.

Last updated on