WTF 0.1

Post-mortem PDB handler

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Renzo Carbonara
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Programming \ Debuggers
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.

Last updated on October 28th, 2010

requirements

#debug handler #Python debugger #PDB handler #Python #debugger #debug #handler

Add your review!

SUBMIT