简体   繁体   English

Visual Studio 2019 clang 扩展中的 LLDB 在哪里?

[英]Where is LLDB in the Visual Studio 2019 clang extension?

Visual Studio comes with built-in clang support that can be enabled when installing. Visual Studio 带有内置的 clang 支持,可以在安装时启用。 I have installed that support and now have all the clang executables in C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\Llvm\\x64\\bin .我已经安装了该支持,现在在C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\Llvm\\x64\\bin拥有所有 clang 可执行C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\Llvm\\x64\\bin

I'm not using Visual Studio for development but just its clang build chain, I'm using CLion instead.我没有使用 Visual Studio 进行开发,而是使用它的 clang 构建链,我使用的是 CLion。 Building works fine, but I have trouble debugging.构建工作正常,但我在调试时遇到问题。 I cannot debug, even though CLion says that it uses the "Bundled LLDB";我无法调试,即使 CLion 说它使用“Bundled LLDB”; something just seems to go wrong, but CLion doesn't tell me what.似乎出了点问题,但 CLion 没有告诉我是什么。

I have the suspicion that it somehow chose the wrong LLDB, so I wanted to check whether I can debug in the shell.我怀疑它以某种方式选择了错误的 LLDB,所以我想检查是否可以在 shell 中调试。 But then I realized, that I am unable to locate that "bundled LLDB" CLion is mentioning.但后来我意识到,我无法找到 CLion 提到的“捆绑的 LLDB”。 There is no lldb.exe in C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\Llvm\\x64\\bin .没有lldb.exeC:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\Llvm\\x64\\bin In fact, I couldn't find an lldb in any subdirectory of C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community .事实上,我在C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community任何子目录中都找不到lldb So where is the debugger for Visual Studio 2019 clang?那么Visual Studio 2019 clang 的调试器在哪里呢? Or which other debugger could I use?或者我可以使用哪个其他调试器? Could I use the native MSVC debugger instead?我可以改用本机 MSVC 调试器吗? If yes, where is this one located?如果有,这个位置在哪里?

You would have to build it yourself.您必须自己构建它。 From the website :网站

(*) Support for Windows is under active development. (*) 对 Windows 的支持正在积极开发中。 Basic functionality is expected to work, with functionality improving rapidly.预计基本功能可以工作,功能会迅速改进。 ARM and AArch64 support is more experimental, with more known issues than the others. ARM 和 AArch64 支持更具实验性,已知问题比其他支持更多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM