Skip to content

Added adonis-debugbar#154

Open
imsyedabdullah wants to merge 1 commit into
adonisjs-community:mainfrom
imsyedabdullah:add-adonis-debugbar
Open

Added adonis-debugbar#154
imsyedabdullah wants to merge 1 commit into
adonisjs-community:mainfrom
imsyedabdullah:add-adonis-debugbar

Conversation

@imsyedabdullah

Copy link
Copy Markdown

adonis-debugbar

A per-request debug toolbar for AdonisJS 6 / 7, inspired by Laravel Debugbar.
It tracks not only the main request, but all the API fetch/xhr/inertia requests and show stats for all the data.
It Captures SQL queries, timeline, route info, session data, console logs, exceptions, and Inertia component snapshots, all scoped to the current HTTP request. Enable/disable via a simple env key to get zero overhead when disabled.

adonis-debugbar-queries

Tabs

  • Messages: manual logging via Debugbar.log/warn/error
  • Console: captured console.log/warn/error with file/line location
  • Timeline: request-to-response timing with named markers and measure spans
  • Queries: every SQL query with duration, bindings, and one-click EXPLAIN ANALYZE
  • Exceptions: caught and uncaught exceptions
  • Inertia: component name and props for every Inertia render
  • Request: headers, query string, and body
  • Route: matched pattern, handler, and middleware chain
  • Session: session ID and key-value snapshot

Works with any AdonisJS frontend: Edge templates, Inertia + React/Vue, or API-only apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant