util.py 文件源码

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

项目:nicfit.py 作者: nicfit 项目源码 文件源码
def debugger():
    """If called in the context of an exception, calls post_mortem; otherwise
    set_trace.
    ``ipdb`` is preferred over ``pdb`` if installed.
    """
    e, m, tb = sys.exc_info()
    if tb is not None:
        _debugger.post_mortem(tb)
    else:
        _debugger.set_trace()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号