A better exception printer for Tornado web server.
Project description
tornado-debugger
A debugger for Tornado server for a better development experience.
Tornado's default exception reporter is very basic and primitive. tornado-debugger
is
a drop-in replacement for the built-in debugger.
Install
$ pip install tornado-debugger
Usage
Use the DebuggerMixin
class to automatically add the debugger features.
This mixin class overrides RequestHandler.write_error
method and will display
a detailed error page.
from tornado import web
from tornado_debugger import DebuggerMixin
class IndexHandler(DebuggerMixin, web.RequestHandler):
# always inherit from mixin class BEFORE the base class
def get(self):
1/0
Note: The DebuggerMixin
only works in debug mode (i.e. when debug=True
in the Application settings).
Screenshot
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tornado-debugger-0.9.1.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for tornado_debugger-0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8c40359186a0dfa261667e9bb328046481996c9515f42daa27b6617046a3564 |
|
MD5 | 389e76e0f149fa538646056ed46859c0 |
|
BLAKE2b-256 | 8155b53b9c9b0bb0eba0a3c3e0f8775cbcf98c105a03b69974e743ed9d16995c |