Allow import of pdb and 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.
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.enablesettrace in the eggs section:
[buildout] ... eggs = ... Products.enablesettrace
This code was originally contributed by Zach Bir and committed by Jim Fulton. Mark van Lent eggified the product.
- 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.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size Products.enablesettrace-0.2.tar.gz (4.0 kB)||File type Source||Python version None||Upload date||Hashes View|
|Filename, size Products.enablesettrace-0.2.zip (7.9 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for Products.enablesettrace-0.2.tar.gz