rafaelbco
Re:Local Variables as Accidental Breadcrumbs for Faster Debugging
on Thursday October 10, 2024 @02:15PM (#41801604)
In Zope you can create a local variable named __traceback_info__ and its value will be inserted in the traceback. It is very useful.
Like add a line to a log, but only when an traceback is shown.
See: https://zopeexceptions.readthedocs.io/en/latest/narr.html#tr...
Seems like the zope.exceptions package can be used independent from Zope.