Skip to main content

A toolbar overlay for debugging Flask applications.

Project description

Flask-DebugToolbar

A Flask extension that injects debugging information into rendered HTML pages. Presented as a sidebar with configurable panels of information.

This is a port of the excellent django-debug-toolbar.

Pallets Community Ecosystem

[!IMPORTANT]
This project is part of the Pallets Community Ecosystem. Pallets is the open source organization that maintains Flask; Pallets-Eco enables community maintenance of related projects. If you are interested in helping maintain this project, please reach out on the Pallets Discord server.

Example

Setting up the debug toolbar is simple:

from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension

app = Flask(__name__)
app.config["SECRET_KEY"] = "<replace with a secret key>"

toolbar = DebugToolbarExtension(app)

The toolbar will automatically be injected into Jinja templates when debug mode is enabled.

$ flask -A my_app run --debug

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask_debugtoolbar-0.16.0.tar.gz (335.3 kB view hashes)

Uploaded Source

Built Distribution

flask_debugtoolbar-0.16.0-py3-none-any.whl (413.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page