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调试会显示上述的问题