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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tornado-debugger-0.9.2.tar.gz.
File metadata
- Download URL: tornado-debugger-0.9.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18b48fa3fbfc6954d72d0fa565443687dd520357c7d9ad46c1113287f9562d31
|
|
| MD5 |
f0bd1be633b4697116c3e54817f27198
|
|
| BLAKE2b-256 |
4e086e0e33a6199ce5852ef1b6bb54ce8c3fcf352481879d07a6f49fa637fb35
|
File details
Details for the file tornado_debugger-0.9.2-py3-none-any.whl.
File metadata
- Download URL: tornado_debugger-0.9.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ae185769896ec8b90b248ae1ca5a23ac95a71b428b541965fd53465ae13cabf
|
|
| MD5 |
7d9b1db35b9df0a52a9e67ceaffeff0e
|
|
| BLAKE2b-256 |
97f11168cd83a05b6cb60dcc7daf6068223201d7407c5124642b12cd513d6194
|