You are not logged in Log in Join
You are here: Home » Members » Tino Wildenhain » Improve traceback display with code excerpt and highlighting » VisualTraceback » Description of the VisualTraceback Product » View Document

Log in
Name

Password

 

Description of the VisualTraceback Product

Proof of concept for better exception formatting

This monkeypatch is a proof of concept to show how exception formatting could be improved.

It includes up to 5 lines of the sourcecode where the exception occured and displays them with linenumbers, marking the line where the exception occured.

If installed enscript is found during product initialization, it is used for a nice syntax highlighting of the cited code.

See here for a "Screenshot"

This code is tested with Zope2.8 but should run well with 2.7 too.

Deleting the folder of this product and restart of Zope should remove it with no traces.

Use at own risk as usual.