Skip to main content

Post-mortem PDB handler

Project description

WTF is a Python post-mortem debug handler.

After an exception, a Pdb debugger will be started in the frame and line where the exception was raised. The IPython debugger will be used by default if available, Otherwise Python’s own pdb.Pdb.

See the accompanying LICENSE file for the licensing terms.


If with statement block support is available (default since 2.6), then WTF can be used as:

from wtf import WTF

with WTF:
    ... do something ...

If an exception is raised inside the with block, then a Pdb debugger will be started on the conflicting line.

WTF can be used as a function call also, with the same results.:

from wtf import WTF

    ... do something ...

For more info, check the wtf.WTFHandler class.

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for wtf, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size wtf-0.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page