qq_34444159
qq_34444159
2021-07-22 22:42
采纳率: 0%
浏览 91

Mac在更新到macOS Big Sur 11.5版本的时候,无法进行启动调试

vscode的django项目无法进行debug调试

AttributeError: dlsym(RTLD_DEFAULT, AttachDebuggerTracing): symbol not found

错误信息是这样的

项目可以通过命令行 python manage.py runserver 启动

这个执行的命令行中的信息
winterauto@winterautodeMacBook-Air C3_project % /usr/bin/env /usr/bin/python3 /Users/winterauto/.vscode/extensions/ms-python.python-2021.7.1053846006/pythonFiles/lib/python/debugpy/launcher 60656 -- /Users/winterauto/vscode_info/C3/C3_project/aaa.py

File "/Users/winterauto/.vscode/extensions/ms-python.python-2021.7.1053846006/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd.py", line 1039, in enable_tracing
pydevd_tracing.SetTrace(thread_trace_func)
File "/Users/winterauto/.vscode/extensions/ms-python.python-2021.7.1053846006/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_tracing.py", line 83, in SetTrace
if set_trace_to_threads(tracing_func, thread_idents=[thread.get_ident()], create_dummy_thread=False) == 0:
File "/Users/winterauto/.vscode/extensions/ms-python.python-2021.7.1053846006/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_tracing.py", line 349, in set_trace_to_threads
result = lib.AttachDebuggerTracing(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/ctypes/init.py", line 378, in getattr
func = self.getitem(name)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/ctypes/init.py", line 383, in getitem

AttributeError: dlsym(RTLD_DEFAULT, AttachDebuggerTracing): symbol not found

aaa.py文件只有两行代码
test = "xxx"
print(test)
但是debug调试会显示上述的问题

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • QA_Assistant
    有问必答小助手 2021-07-23 11:29

    你好,我是有问必答小助手。为了技术专家团更好地为您解答问题,烦请您补充下(1)问题背景详情,(2)您想解决的具体问题,(3)问题相关代码图片或者报错信息。便于技术专家团更好地理解问题,并给出解决方案。

    您可以点击问题下方的【编辑】,进行补充修改问题。
    img

    点赞 评论

相关推荐