Debugging middlewares for zope.publisher-based web applications
Project description
z3c.evalexception provides two WSGI middlewares for debugging web applications running on the zope.publisher object publishing framework (e.g. Zope 3). Both middlewares will intercept an exception thrown by the application and provide means for debugging.
Interactive AJAX debugger
z3c.evalexception.ZopeEvalException lets you interactively debug exceptions from a browser. It is a small wrapper around the EvalException middleware from paste.evalexception. You can easily refer to it in a PasteDeploy-style configuration file using the ajax entry-point:
[filter-app:main] use = egg:z3c.evalexception#ajax next = zope [app:zope] use = egg:YourApp [server:main] use = egg:Paste#http host = 127.0.0.1 port = 8080
Post-mortem pdb
z3c.evalexception.PostMortemDebug invokes pdb’s post-mortem mode when the application has thrown an exception. You can refer to it in a PasteDeploy-style configuration file using the pdb entry-point:
[filter-app:main] use = egg:z3c.evalexception#pdb next = zope [app:zope] use = egg:YourApp [server:main] use = egg:Paste#http host = 127.0.0.1 port = 8080
Changes
3.0 (2021-02-10)
Add support for Python 3.5, 3.6, 3.7, 3.8 and 3.9.
2.0 (2007-08-23)
Add the PostMortemDebug (pdb) middleware.
1.0 (2007-06-02)
Initial release, featuring the Zope 3-compatible interactive AJAX debugger from Paste.
Project details
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
Hashes for z3c.evalexception-3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a39cdb36639d76e295653ef264b84ce87a9db3f384c374aec2e3482e054b0c3e |
|
MD5 | ae7eddcf978bdabf1c5e3ca8e43ccb20 |
|
BLAKE2b-256 | 74a157b4b52bd12838b95ef87c7081ba3ab193180dc3a940de5da8bf3690ef97 |