Prettier formatting for ?_trace=1 traces
Install this plugin in the same environment as Datasette.
datasette install datasette-pretty-tracesOnce installed, run Datasette using --setting trace_debug 1:
datasette fixtures.db --setting trace_debug 1Then navigate to any page and add ?_trace= to the URL:
http://localhost:8001/?_trace=1
The plugin will scroll you down the page to the visualized trace information.
You can also visit the dedicated demo page to see the fetch() interception feature in action:
http://localhost:8001/-/pretty-traces?_trace=1
You can try out the demo here:
- /?_trace=1 tracing the homepage
- /github/commits?_trace=1 tracing a table page
To set up this plugin locally, checkout the code and run the tests with uv run pytest:
cd datasette-pretty-traces
uv run pytestTo try your development version of plugin run it like this:
uv run datasette fixtures.db --setting trace_debug 1