This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Usage

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

try:
    ... do something ...
except:
    WTF()

For more info, check the wtf.WTFHandler class.

Release History

Release History

This version
History Node

0.1

Download Files

Download Files

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
wtf-0.1.tar.gz (3.2 kB) Copy SHA256 Checksum SHA256 Source Oct 26, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting