Skip to main content

Introduction

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 module. It is a fork of the original Products.enablesettrace package which still resides in the Zope Subversion Repository. The only change made was turning the package into an egg.

It also incorporates the monkeypatch from the zdb product from Chris Withers.

Installation

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

Credits

This code was originally contributed by Zach Bir and committed by Jim Fulton. Mark van Lent eggified the product.

Jean Jordaan snarfed Chris’s code from https://github.com/Simplistix/zdb There is more in zdb that may be worth porting.

Changelog

1.1 (2013-11-25)

  • Incorporate zdb monkeypatch to load the line cache

1.0 (2010-05-30)

  • Revert changes made in version 0.2 so the egg contains the same code as the original in the Zope Subversion Repository. Moved the ‘enhanced’ code to Products.Ienablesettrace. [markvl]

0.2 (2010-04-02)

  • Also allow import of ipdb. [markvl]

0.1 (2010-04-02)

  • Initial release: eggified version of Products.enablesettrace as stored in the Zope Subversion Repository.

Metadata

Release files for Products.enablesettrace 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Products.enablesettrace 1.1
File Size Uploaded
Products.enablesettrace-1.1.zip 10.4 kB Details

Release files / Products.enablesettrace-1.1.zip

Download URL Products.enablesettrace-1.1.zip
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
484957831912ca0859f37a1f2a913c34f9abcfa35e2173adb1fad3e8466ab4dc
BLAKE2b-256 checksum
How to use checksums
80a7baf9407f432343e129073c8251c03b67fcd76a4623295e08f6751fc8f767
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.2.0

1 release file

This release

1.1 This release

1 release file

1.1dev

1.0

1 release file

0.2

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page