-
Notifications
You must be signed in to change notification settings - Fork 32
Debugging tools
This page is deprecated! Waiting for b2share-next
to become stable!
In case an exception occurs while rendering a web page, the werkzeug debugger prints in the browser a stack trace with full information. On the same browser page one can view the source code for each stack frame and also create interactive Python interpreters, allowing for inspection of the variables.
How to enable: add werkzeug-debugger
to CFG_DEVEL_TOOLS; then rebuild config.py and restart httpd
See also: http://werkzeug.pocoo.org/docs/debug/
The Flask debug toolbar creates a debugging toolbar on the right side of the web page which allows to inspect the HTTP headers and request variables, view the sql calls and logs messages. It also has profiling capabilities.
How to enable: add debug-toolbar
to CFG_DEVEL_TOOLS and set CFG_DEVEL_SITE to 9; then rebuild config.py and restart httpd