pydevd_dont_trace.py 文件源码

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

项目:specto 作者: mrknow 项目源码 文件源码
def clear_trace_filter_cache():
    '''
    Clear the trace filter cache.
    Call this after reloading.
    '''
    global should_trace_hook
    try:
        # Need to temporarily disable a hook because otherwise
        # _filename_to_ignored_lines.clear() will never complete.
        old_hook = should_trace_hook
        should_trace_hook = None

        # Clear the linecache
        linecache.clearcache()
        _filename_to_ignored_lines.clear()

    finally:
        should_trace_hook = old_hook
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号