visualstudio_py_debugger.py 文件源码

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

项目:ApiRestPythonTest 作者: rvfvazquez 项目源码 文件源码
def handle_exception(self, frame, arg):
        if self.stepping == STEPPING_ATTACH_BREAK:
            self.block_maybe_attach()

        if not DETACHED and should_debug_code(frame.f_code):
            break_type = BREAK_ON.should_break(self, *arg)
            if break_type:
                update_all_thread_stacks(self)
                self.block(lambda: report_exception(frame, arg, self.id, break_type))

        # forward call to previous trace function, if any, updating the current trace function
        # with a new one if available
        old_trace_func = self.prev_trace_func
        if old_trace_func is not None:
            self.prev_trace_func = old_trace_func(frame, 'exception', arg)

        return self.trace_func
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号