Skip to content


A debug toolbar for FastAPI based on the original django-debug-toolbar.

Swagger UI & GraphQL are supported.


pip install fastapi-debug-toolbar


The following packages are automatically installed:


Add DebugToolbarMiddleware middleware to your FastAPI application:

from debug_toolbar.middleware import DebugToolbarMiddleware
from fastapi import FastAPI

app = FastAPI(debug=True)

How it works

Debug toolbar

Once installed, the debug toolbar tab is displayed on the right side of any html page, just click on it to open the navbar.

The debug toolbar can be used with Swagger UI or GraphiQL and it is automatically updated after any request using a cookie-based system.

Swagger UI