skillfed

Flask-DebugToolbar

A toolbar overlay for debugging Flask applications.

flask-debugtoolbar v0.16.0 1.3M downloads/30d#4,048 on PyPI978
Permissive license Active released

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-debugtoolbar

uv

uv add flask-debugtoolbar

poetry

poetry add flask-debugtoolbar

Installing 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

Development Status :: 4 - BetaFramework :: FlaskLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonTyping :: Typed

Tags

flask debug toolbarflask debugging extensionflask request inspectionflask development debuggingflask html debug panelflask application profilingflask template debugging
flask-extensiondevelopment-tooldebugging

More Testing packages

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

pytest

pytest is a testing framework that lets you…

permissive · top 100 on PyPI

virtualenv

virtualenv creates isolated Python environments…

permissive · top 100 on PyPI

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

pytest-asyncio

pytest-asyncio is a pytest plugin that enables…

permissive · top 1,000 on PyPI

pytest-json-ctrf

A pytest plugin that generates test reports in…

permissive · top 1,000 on PyPI

aiohttp-debugtoolbar

Adds an interactive debug toolbar to aiohttp…

permissive · top 15,000 on PyPI

django-debug-toolbar

Displays debug information panels in Django…

permissive · top 5,000 on PyPI

debug-mgr

Provides a debug manager interface for C++…

permissive · top 15,000 on PyPI

django-debug-toolbar-template-timings

A Django Debug Toolbar panel that measures and…

unclear · top 15,000 on PyPI

django-graphiql-debug-toolbar

Integrates Django Debug Toolbar into the…

permissive · top 15,000 on PyPI

django-debug-toolbar-template-profiler

Adds a debug panel to django-debug-toolbar that…

permissive · top 15,000 on PyPI

pyramid-debugtoolbar

Pyramid_debugtoolbar injects an interactive…

permissive · top 5,000 on PyPI

Flask-Mail

Flask-Mail adds email-sending functionality to…

permissive · top 5,000 on PyPI

djdt-flamegraph

Integrates flame graph visualization into…

permissive · top 15,000 on PyPI

Flask-Caching

Flask-Caching adds caching support to Flask…

permissive · top 5,000 on PyPI