英文:
LLDB warning: Unable to resolve breakpoint to any actual locations on Windows 10
问题
在使用clang -g .\main.cpp -o .\main.exe
编译我的Hello World程序后,我尝试运行并设置断点,但无法解析。
lldb .\main.exe
(lldb) target create ".\\main.exe"
(lldb) Current executable set to 'C:\Hello World\src\main.exe' (x86_64).
(lldb) b main
Breakpoint 1: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
我做错了什么?
另外,我通过Chocolatey安装了LLVM,并且我正在运行Windows 10。
英文:
after compiling my hello world program with clang -g .\main.cpp -o .\main.exe
I then run and try to set a breakpoint but it does not resolve.
lldb .\main.exe
(lldb) target create ".\\main.exe"
(lldb) Current executable set to 'C:\Hello World\src\main.exe' (x86_64).
(lldb) b main
Breakpoint 1: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
What am I doing wrong?
Also I installed LLVM through chocolatey and I am running windows 10.
答案1
得分: 1
我修复了它。我只需要使用regsvr32注册两个dll,C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\bin\msdia140.dll 和 C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\bin\amd64\msdia140.dll。
英文:
I fixed it. I just needed to register two dlls with regsvr32, C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\bin\msdia140.dll & C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\bin\amd64\msdia140.dll
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论