Skip to content

Default panels

Here's a list of default panels available:

Versions

Versions panel

Timer

Timer panels

Settings

Settings panel

Add your pydantic's BaseSettings classes to this panel:

from debug_toolbar.middleware import DebugToolbarMiddleware
from fastapi import FastAPI
from pydantic import SecretStr
from pydantic_settings import BaseSettings


class APISettings(BaseSettings):
    SECRET_KEY: SecretStr


app = FastAPI(debug=True)
app.add_middleware(DebugToolbarMiddleware, settings=[APISettings()])

Request

Request panel

Headers

Headers panel

Routes

Routes panel

Logging

Logging panel

Profiling

Profiling panel

Profiling reports provided by Pyinstrument, you can configure the profiler parameters by adding profiler_options settings:

from debug_toolbar.middleware import DebugToolbarMiddleware
from fastapi import FastAPI

app = FastAPI(debug=True)
app.add_middleware(DebugToolbarMiddleware, profiler_options={'interval': .0002})