Skip to content

rust-gdb and rust-lldb not working using stable-x86_64-pc-windows-gnu toolchain #2838

Open

Description

@PietroValerio

Problem

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)

Activity

  1. ehuss commented on Aug 31, 2021

    @ehuss
    Contributor

    I think (maybe) the issue is that rustup is assuming all executables end with .exe here, but scripts like rust-gdb are shell scripts which do not have the extension.

  2. kinnison commented on Oct 9, 2021

    @kinnison
    Contributor

    Certainly on Windows we blindly append the extension .exe -- perhaps

    1. we should use PATHEXT rather than always assuming .exe
    2. 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.

  3. prdas31 commented on Oct 17, 2021

    @prdas31

    Same issue ...

    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
    
    D:\RustTest01>which rust-lldb
    /d/Programs/Rust/.cargo/bin/rust-lldb
    
  4. selvavm commented on Jan 28, 2022

    @selvavm

    Based on the link, I am able to debug rust in windows with rust-gdb in Visual Studio Code using the below configuration,

    {
                "type": "gdb",
                "request": "launch",
                "name": "Debug Launch",
                "target": "${workspaceRoot}/target/debug/${workspaceRootFolderName}.exe",
                "cwd": "${workspaceRoot}",
                "valuesFormatting": "parseText",
                "gdbpath": "C:/Users/selva/.cargo/bin/rust-gdb.cmd",
                "preLaunchTask": "cargo build (stable-gnu)",
            }
    

    But the pretty printer is not working. It is showing address instead of string.

  5. 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
  6. NossicaSystems commented on Jun 26, 2023

    @NossicaSystems

    Has there been any progress on this?

  7. self-assigned this
    on Jul 4, 2023
  8. 0xPoe commented on Jul 4, 2023

    @0xPoe
    Member

    I will try to fix it.

  9. luowyang commented on Sep 26, 2023

    @luowyang

    I will try to fix it.

    @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?

  10. rami3l commented on Sep 26, 2023

    @rami3l
    Member

    @luowyang Sorry, but @hi-rustin is not on the team currently... Maybe we need to find some time to pick up the lost context...

  11. removed their assignment
    on Oct 20, 2023
  12. clingedge commented on May 8, 2025

    @clingedge

    error: the 'rust-lldb.exe' binary, normally provided by the 'rustc' component, is not applicable to the 'stable-x86_64-pc-windows-msvc' toolchain

  13. added this to the 1.28.3 milestone on May 8, 2025
  14. ChrisDenton commented on Nov 2, 2025

    @ChrisDenton
    Member

    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.

  15. 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
  16. modified the milestones: 1.29.0, 1.30.0 on Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions