An open API service indexing awesome lists of open source software.

https://github.com/techniq/flask-wdb

Integrate Wdb instead of Werkzeug debugger for Flask applications
https://github.com/techniq/flask-wdb

Last synced: about 1 year ago
JSON representation

Integrate Wdb instead of Werkzeug debugger for Flask applications

Awesome Lists containing this project

README

          

Flask-Wdb
=========

Integrate `Wdb `_ instead of Werkzeug debugger for Flask applications

- Disables/replaces Werkzeug debugger automatically
- Exposes configuration of Wdb via ``app.config``
- Only enabled when ``app.debug = True`` (unless overridden by ``WDB_ENABLED``)

Installation
------------
::

$ pip install flask-wdb

Usage
-----
::

from flask import Flask
from flask_wdb import Wdb

app = Flask(__name__)
app.debug = True
Wdb(app)

app.run()

Configuration
-------------

- ``WDB_ENABLED`` Enable/Disable Wdb (default: app.debug)
- ``WDB_START_DISABLED`` Disable Wdb until an exception or wdb.set_trace() is encountered (default: False)
- ``WDB_THEME`` Change theme between 'dark' and 'light' (default: 'dark')