python/dna/debug.py
def activate_pdb_hook():
    ''' Catch exceptions with a prompt for post-mortem analyzis'''
    def debug_exception(type_exception, value, tb):
        import pdb
        pdb.post_mortem(tb)

    import sys
    sys.excepthook = debug_exception
def activate_pdb_hook():
    ''' Catch exceptions with a prompt for post-mortem analyzis'''
    def debug_exception(type_exception, value, tb):
        import pdb
        pdb.post_mortem(tb)

    import sys
    sys.excepthook = debug_exception
def activate_pdb_hook ( ) : def debug_exception ( type_exception , value , tb ) : import pdb pdb . post_mortem ( tb ) import sys sys . excepthook = debug_exception
Catch exceptions with a prompt for post-mortem analyzis
Catch exceptions with a prompt for post - mortem analyzis