-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not debug, lldb #18535
Comments
it starts the debug, and another message shows, |
Which debugging extension are you using? |
with rust-analyzer, only codelldb |
Just here to add, I’m also seeing this issue. Also using rust-analyzer/CodeLLDB |
I'm having the exact same issue. |
Also having this issue |
Me as well. |
+1 |
+1 VSCode, CodeLLDB, Rust nightly, Full Visual Studio 2022 installed. Loading Rust formatters from C:\Users\gbegerow.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib/rustlib/etc Maybe this is a conflict between LLDB and MSVC toolchain? |
As a workaround, copying the files from the windows-gnu\lib\rustlib\etc toolchain directory to the windows-msvc\lib\rustlib\etc directory makes the warning go away. |
That sounds like a toolchain issue, not a rust-analyzer issue. We don't do anything special for debuggers (aside from providing a runner task). Especially given it seems to work with the gnu toolchain, so to me that sounds like the msvc toolchain isn't shipping necessary files |
Ah, https://github.com/vadimcn/codelldb/wiki/Windows#debugging-rust-on-windows talks about this, quoting: Debugging Rust on WindowsThe default toolchain installed on Windows by Rustup is the
For more information on Rust toolchains for Windows, see the Rustup Installation Guide for Windows. I'll close this as this is not a rust-analyzer issue |
No longer works. |
Looks like rust-lang/rust#133737 should fix this generally, so with 1.85 and forward debugging should work on msvc again |
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rust-analyzer version: 0.3.2188-standalone (ba56d9b 2024-11-17) [c:\Users\matth.vscode\extensions\rust-lang.rust-analyzer-0.3.2188-win32-x64\server\rust-analyzer.exe]
rustc version: (eg. output of
rustc -V
)rustc 1.82.0 (f6e511eec 2024-10-15)
editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
VSCode
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)...
repository link (if public, optional): (eg. rust-analyzer)
...
code snippet to reproduce:
Could not find LLDB data formatters in your Rust toolchain
, and after installing it, the same message appears againThe text was updated successfully, but these errors were encountered: