def new_thread(tid = None, set_break = False, frame = None):
# called during attach w/ a thread ID provided.
if tid == debugger_thread_id:
return None
cur_thread = Thread(tid)
THREADS_LOCK.acquire()
THREADS[cur_thread.id] = cur_thread
THREADS_LOCK.release()
cur_thread.push_frame(frame)
if set_break:
cur_thread.stepping = STEPPING_ATTACH_BREAK
if not DETACHED:
report_new_thread(cur_thread)
return cur_thread
visualstudio_py_debugger.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录