def new_thread_wrapper(func, posargs, kwargs):
cur_thread = new_thread()
try:
sys.settrace(cur_thread.trace_func)
func(*posargs, **kwargs)
finally:
THREADS_LOCK.acquire()
if not cur_thread.detach:
del THREADS[cur_thread.id]
THREADS_LOCK.release()
if not DETACHED:
report_thread_exit(cur_thread)
visualstudio_py_debugger.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录