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 byWDB_ENABLED
)
$ pip install flask-wdb
from flask import Flask from flask_wdb import Wdb app = Flask(__name__) app.debug = True Wdb(app) app.run()
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')