Fork of Products.enablesettrace which also allows import of ipdb in restricted code.
To make a long story short: sometimes you need to break into the debugger in the middle of a Script (Python). To prevent the frustrating Unauthorized: import of 'pdb' is unauthorized message, use this enablesettrace package.
This package supports importing the pdb and ipdb module. It is a fork of the Products.enablesettrace package.
The installation is as simple as making sure the package is located on the Python path. For example when you are using zc.buildout list Products.Ienablesettrace in the eggs section:
[buildout] ... eggs = ... Products.Ienablesettrace
This code was originally contributed by Zach Bir and committed by Jim Fulton. Mark van Lent eggified the product.
- Forked Products.enablesettrace version 0.2 and changed name to Products.Ienablesettrace since the former will have the added inclusion of ipdb removed in the next release. [markvl]
- Also allow import of ipdb. [markvl]
- Initial release: eggified version of Products.enablesettrace as stored in the Zope Subversion Repository.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|Products.Ienablesettrace-1.0.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256||–||Source||May 30, 2010|
|Products.Ienablesettrace-1.0.zip (8.4 kB) Copy SHA256 Checksum SHA256||–||Source||May 30, 2010|