Debug every ZIG
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
great_justice
.gitignore
LICENSE
README.textile
setup.py

README.textile

How are you gentlemen !!

This module provides an easy way to debug broken code.

What you say !!

from great_justice import what_happen
try:
    # ...
except:
    what_happen()

Or make it even better:

from great_justice import take_your_time
with take_your_time():
    # ...

Results:

great-justice 2012.6

To get a nice debug log just pass a logger object:

from great_justice import what_happen
import logging
logger = logging.getLogger(__name__)
try:
    # ...
except:
    what_happen(logger=logger)