__init__.py 文件源码

python
阅读 138 收藏 0 点赞 0 评论 0

项目:CodeReader 作者: jasonrbr 项目源码 文件源码
def post_mortem(t=None):
    if t is None:
        t = sys.exc_info()[2] # Will be valid if we are called from an except handler.
    if t is None:
        try:
            t = sys.last_traceback
        except AttributeError:
            print("No traceback can be found from which to perform post-mortem debugging!")
            print("No debugging can continue")
            return
    p = _GetCurrentDebugger()
    if p.frameShutdown: return # App closing
    # No idea why I need to settrace to None - it should have been reset by now?
    sys.settrace(None)
    p.reset()
    while t.tb_next != None: t = t.tb_next
    p.bAtPostMortem = 1
    p.prep_run(None)
    try:
        p.interaction(t.tb_frame, t)
    finally:
        t = None
        p.bAtPostMortem = 0
        p.done_run()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号