Skip to content

simonw/datasette-pretty-traces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datasette-pretty-traces

PyPI Changelog Tests License

Prettier formatting for ?_trace=1 traces

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-pretty-traces

Usage

Once installed, run Datasette using --setting trace_debug 1:

datasette fixtures.db --setting trace_debug 1

Then 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

Demo

You can try out the demo here:

Screenshot

Screenshot showing the visualization produced by the plugin

Development

To set up this plugin locally, checkout the code and run the tests with uv run pytest:

cd datasette-pretty-traces
uv run pytest

To try your development version of plugin run it like this:

uv run datasette fixtures.db --setting trace_debug 1

About

Prettier formatting for ?_trace=1 traces

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors