'Invoke the debugger post mortem capability'

def _HandleException_(self):

    (typ, val, tb) = exc_info()
    debug = 0
    try:
        raise typ(val)
    except Exception:
        debug = pywin.debugger.GetDebugger().get_option(pywin.debugger.dbgcon.OPT_STOP_EXCEPTIONS)
    except:
        debug = 1
    if debug:
        try:
            pywin.debugger.post_mortem(tb, typ, val)
        except:
            traceback.print_exc()
    del tb
    raise
