Flask-DebugToolbar
A toolbar overlay for debugging Flask applications.
What it is and what it does
Flask-DebugToolbar is a Flask extension that automatically injects a sidebar overlay into HTML pages during development, showing debugging information about the current request and application state. It is designed as a port of Django's debug toolbar and integrates seamlessly with Flask's debug mode, requiring only a few lines of setup code to enable.
The toolbar displays configurable panels of diagnostic data and is injected directly into Jinja templates when debug mode is active. It helps developers inspect requests, view template context, and understand application behavior during development without requiring external tools or manual instrumentation.
Use it for:
- Inspect HTTP request and response details, headers, and cookies during development.
- Debug Jinja template rendering and view the context variables passed to templates.
- Monitor database queries and other instrumented operations in real time.
- Profile application performance and identify bottlenecks during development.
- Understand Flask configuration and extension state without adding print statements.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Flask-DebugToolbar injects a debugging sidebar into rendered HTML pages when Flask debug mode is enabled, displaying configurable panels of information about requests, templates, and application state.
Yes. Flask-DebugToolbar is a low-friction, actively maintained development tool with no security vulnerabilities, a permissive license, and a single dependency. It is worth installing for any Flask project in active development where visibility into request handling and template rendering would aid debugging.
Install
flask-debugtoolbar on PyPI
pip
pip install flask-debugtoolbaruv
uv add flask-debugtoolbarpoetry
poetry add flask-debugtoolbarInstalling Flask-DebugToolbar
Before you install
Low install friction with a single runtime dependency on flask. The project is actively maintained as part of the Pallets Community Ecosystem, with recent commits and a stable release cadence.
License in practice
Licensed under a permissive BSD license, allowing use in both open-source and proprietary projects without significant restrictions.
Quickstart
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
app = Flask(__name__)
app.config["SECRET_KEY"] = "your-secret-key"
toolbar = DebugToolbarExtension(app)
Flask debug mode must be enabled for the toolbar to inject into templates; typically run with `flask run --debug`.
Verify before relying
- What specific debugging information panels are available (e.g., SQL queries, cache, headers, profiling).
- Whether the toolbar works with all Flask template engines or only Jinja2.
- Performance impact when the toolbar is active on production-like workloads.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — flask |
| Maintenance | actively maintained — 685 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,330,386/month — #4,048 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: flask_debugtoolbar-0.16.0-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
aiohttp-debugtoolbarAdds an interactive debug toolbar to aiohttp…
permissive · top 15,000 on PyPI
django-debug-toolbarDisplays debug information panels in Django…
permissive · top 5,000 on PyPI
debug-mgrProvides a debug manager interface for C++…
permissive · top 15,000 on PyPI
django-debug-toolbar-template-timingsA Django Debug Toolbar panel that measures and…
unclear · top 15,000 on PyPI
django-graphiql-debug-toolbarIntegrates Django Debug Toolbar into the…
permissive · top 15,000 on PyPI
django-debug-toolbar-template-profilerAdds a debug panel to django-debug-toolbar that…
permissive · top 15,000 on PyPI
pyramid-debugtoolbarPyramid_debugtoolbar injects an interactive…
permissive · top 5,000 on PyPI
Flask-MailFlask-Mail adds email-sending functionality to…
permissive · top 5,000 on PyPI
djdt-flamegraphIntegrates flame graph visualization into…
permissive · top 15,000 on PyPI
Flask-CachingFlask-Caching adds caching support to Flask…
permissive · top 5,000 on PyPI