Skip to main content

PDBDebugMode - Enable various PDB debugging when debug-mode=on

When Zope is running in debug mode this product enables post-mortem debugging on exceptions, runcall debugging of designated requests, and import of pdb in unprotected code.

REQUIREMENTS:

PDBDebugMode has only been tested with Zope 2.8.5 and 2.10 SVN/UNRELEASED but may well work with other versions.

Its recommended that you use an editor or IDE that can cooperate with pdb. Emacs’ gud-mode, for example, will display the corresponding lines of the source file alongside the pdb prompt.

INSTALLATION:

Just put the PDBDebugMode directory into any of your instances Products directories and restart Zope.

Remember that this product does nothing unless zope is being run with debug-mode=on such as with “instance/bin/zopectl fg”

POST-MORTEM DEBUGGING:

If Zope is running with debug-mode=on and this product is installed, upon raising any valid exception the port-mortem debugger is invoked with the traceback. Once in the debugger you can examine objects, variables, etc. at all levels of the call stack. This is, of course, extremely useful for debugging.

Valid exceptions for post-mortem debugging are determined as follows. If a relevant error log object is found, exceptions included in the error log’s ignored exception types will be ignored and the debugger won’t be invoked. All ZODB Conflict and Zope Retry errors are also ignored.

RUNCALL REQUESTS:

If Zope is running with debug-mode=on and this product is installed, any request that has the key “pdb_runcall” will call the result of the request traversal in the debugger thus allowing for stepping through the resulting execution.

Alternatively, a view named ‘pdb’ is registered for all objects that will simply raise an exception leaving you with the current context to inspect.

ALLOW IMPORT OF PDB:

If Zope is running with debug-mode=on and this product is installed, import of the pdb module is allowed in unprotected code such as python scripts.

Changelog

0.2 - 2008-05-15

  • Eggified

0.1 - 2006-03-11

  • Initial release

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Products.PDBDebugMode-0.2.tar.gz (13.7 kB view details)

Uploaded Source

File details

Details for the file Products.PDBDebugMode-0.2.tar.gz.

File metadata

File hashes

Hashes for Products.PDBDebugMode-0.2.tar.gz
Algorithm Hash digest
SHA256 a56ffb70203e058ffe710363adefdc7be5b275c716efdcc25f359cb0a498af85
MD5 a4196069e0b69704957cce7ee1e3f956
BLAKE2b-256 8e67e65273b35a34f10ee6a190769de30766230e4442cae49f1e01eff94b6611

See more details on using hashes here.

Release history Release notifications | RSS feed

3.0.0

2 files

2.1

2 files

2.0

1 file

1.4

1 file

1.3.1

1 file

1.3

1 file

1.2

1 file

1.1

1 file

1.0

1 file

0.3

1 file

This release

0.2 This release

1 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