Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flask-debugtoolbar/flask-debugtoolbar
A toolbar overlay for debugging Flask applications
https://github.com/flask-debugtoolbar/flask-debugtoolbar
debug flask flask-debugtoolbar flask-sqlalchemy jinja profile python werkzeug
Last synced: 8 days ago
JSON representation
A toolbar overlay for debugging Flask applications
- Host: GitHub
- URL: https://github.com/flask-debugtoolbar/flask-debugtoolbar
- Owner: pallets-eco
- License: bsd-3-clause
- Created: 2011-12-16T20:03:04.000Z (about 13 years ago)
- Default Branch: main
- Last Pushed: 2024-10-26T00:09:23.000Z (about 2 months ago)
- Last Synced: 2024-10-29T15:13:00.570Z (about 2 months ago)
- Topics: debug, flask, flask-debugtoolbar, flask-sqlalchemy, jinja, profile, python, werkzeug
- Language: JavaScript
- Homepage: https://flask-debugtoolbar.readthedocs.io
- Size: 1.36 MB
- Stars: 949
- Watchers: 22
- Forks: 144
- Open Issues: 38
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-python-resources - GitHub - 33% open · ⏱️ 18.08.2022): (调试工具)
README
# 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][ddt].
[Flask]: https://flask.palletsprojects.com
[ddt]: https://github.com/jazzband/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][discord].[discord]: https://discord.gg/pallets
## Example
Setting up the debug toolbar is simple:
```python
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtensionapp = Flask(__name__)
app.config["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
```![](https://raw.githubusercontent.com/pallets-eco/flask-debugtoolbar/main/docs/_static/example.gif)