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
visualstudio_py_debugger.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录