Warning

This document hasn't been checked for compatibility with current versions of Plone. Use at your own risk.

Debug Script (Python) with pdb

by Daniel Nouri last modified Dec 30, 2008 03:02 PM
Enable pdb.set_trace() in restricted code with this Product.

There's a handy two-line Zope2 Product that allows pdb.set_trace() inside Script (Python) objects. Check it out here:

svn co svn://svn.zope.org/repos/main/Products.enablesettrace/trunk enablesettrace

And then put it into your Products directory. This is only for development, of course.

To get listing ("l" command of pdb) of source code and tools like pdbtrack working for Script (Python), download and install the ScriptDebugging Product.


Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.