ZPTDebugger
Category: Development tools, Miscellaneous
—
Other products by this author
Current release: ZPTDebugger 1.1.2
Released Dec 19, 2007 — tested with Plone 2.5, Plone 2.1, Plone 2.0, Plone 1.0, Zope 2.10, Zope 2.9, Zope 2.8, Zope 2.7
Next release of this product. Fixes some errors with compatibility with latest Zope and Plone.
Experimental releases
There are no experimental releases available at the moment.
Project Description
- Project resources
Have you ever struggled with an error in complicated Plone template?
If so, this product is for you.
Using ZPTDebuger you can easily see the values of each Python expression used in template and all other templates used by it. You can see the expression, its value, value type and time used to execute it.
This product is instantiated as simple Zope object. It lists in a table all executed Python expressions or presents them as a tree-like structure. If there was error in an expression it will be marked as a red row and it will be the last row processed. But the error will still remain in error_log.
To actually debug template you have to go to #DebuggerConsole (default id) and run debugger with relative path to template and optional parameters. Product will monkey patch TALInterpreter and PageTemplates.Expressions but debugging functionality is disabled by default. It is enabled only during debugger call. But despite that it should't be used on live instances.