You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust-gdb and rust-lldb not working using stable-x86_64-pc-windows-gnu toolchain #2838
expected debugget output but this message pops up the 'rust-gdb.exe' binary, normally provided by the 'rustc' component, is not applicable to the 'stable-x86_64-pc-windows-gnu' toolchain
Steps
1.type rustup-gdb or rustup-lldb
Possible Solution(s)
Notes
Operating system:Windows 10 pro version 10.0.19042 Build 19042
Using mingw-64
Output of rustup --version: rustup 1.24.3 (ce5817a 2021-05-31)
Output of rustup show:
Default host: x86_64-pc-windows-gnu
stable-x86_64-pc-windows-gnu (default)
rustc 1.54.0 (a178d0322 2021-07-26)
I think (maybe) the issue is that rustup is assuming all executables end with .exehere, but scripts like rust-gdb are shell scripts which do not have the extension.
Certainly on Windows we blindly append the extension .exe -- perhaps
we should use PATHEXT rather than always assuming .exe
we should consider how to have rust-gdb and rust-lldb scripts which will work on native Windows and then give the new scripts appropriate extensions.
Failing that, I suppose we could detect the missing executable, but the fact that the component is already installed and present a better error message.
D:\RustTest01>rust-lldb
error: the 'rust-lldb.exe' binary, normally provided by the 'rustc' component, is not applicable to the 'stable-x86_64-pc-windows-msvc' toolchain
changed the title [-]rust-gdb.exe and rust-lldb.exe not working using stable-x86_64-pc-windows-gnu' toolchain[/-][+]rust-gdb and rust-lldb not working using stable-x86_64-pc-windows-gnu' toolchain[/+]on Jun 25, 2023
@hi-rustin Is there any progress on this issue? The rust-lldb is perfectly runnable in MSYS2 as long as the LLDB is installed. Technically it may be fixed by figuring out 1) how to distribute the LLDB, and 2) how to distribute an MSYS2-like run environment, or create an equivalent cmd script. Is there any particular problem that blocks this naive solution?
For the short term workaround, I think it might be better to just not proxy these on Windows hosts. It's better there be no proxy than broken ones. When an actual fix is created they can be added back.
changed the title [-]rust-gdb and rust-lldb not working using stable-x86_64-pc-windows-gnu' toolchain[/-][+]rust-gdb and rust-lldb not working using stable-x86_64-pc-windows-gnu toolchain[/+]on Nov 3, 2025
Activity
ehuss commentedon Aug 31, 2021
I think (maybe) the issue is that rustup is assuming all executables end with
.exehere, but scripts like rust-gdb are shell scripts which do not have the extension.kinnison commentedon Oct 9, 2021
Certainly on Windows we blindly append the extension
.exe-- perhapsPATHEXTrather than always assuming.exerust-gdbandrust-lldbscripts which will work on native Windows and then give the new scripts appropriate extensions.Failing that, I suppose we could detect the missing executable, but the fact that the component is already installed and present a better error message.
prdas31 commentedon Oct 17, 2021
Same issue ...
selvavm commentedon Jan 28, 2022
Based on the link, I am able to debug rust in windows with rust-gdb in Visual Studio Code using the below configuration,
But the pretty printer is not working. It is showing address instead of string.
[-]rust-gdb.exe and rust-lldb.exe not working using stable-x86_64-pc-windows-gnu' toolchain[/-][+]rust-gdb and rust-lldb not working using stable-x86_64-pc-windows-gnu' toolchain[/+]NossicaSystems commentedon Jun 26, 2023
Has there been any progress on this?
0xPoe commentedon Jul 4, 2023
I will try to fix it.
luowyang commentedon Sep 26, 2023
@hi-rustin Is there any progress on this issue? The
rust-lldbis perfectly runnable in MSYS2 as long as the LLDB is installed. Technically it may be fixed by figuring out 1) how to distribute the LLDB, and 2) how to distribute an MSYS2-like run environment, or create an equivalent cmd script. Is there any particular problem that blocks this naive solution?rami3l commentedon Sep 26, 2023
@luowyang Sorry, but @hi-rustin is not on the team currently... Maybe we need to find some time to pick up the lost context...
clingedge commentedon May 8, 2025
error: the 'rust-lldb.exe' binary, normally provided by the 'rustc' component, is not applicable to the 'stable-x86_64-pc-windows-msvc' toolchain
ChrisDenton commentedon Nov 2, 2025
For the short term workaround, I think it might be better to just not proxy these on Windows hosts. It's better there be no proxy than broken ones. When an actual fix is created they can be added back.
[-]rust-gdb and rust-lldb not working using stable-x86_64-pc-windows-gnu' toolchain[/-][+]rust-gdb and rust-lldb not working using stable-x86_64-pc-windows-gnu toolchain[/+]