Rust Analyzer and Debugging with Windows aarch64

getting this error when trying to debug rust binary even though the rust target is aarch64-pc-windows-msvc.

rust analyzer extension rust-lang.rust-analyzer 0.3.2212

Command Line output

PS C:\...> rustup toolchain list
stable-aarch64-pc-windows-msvc
nightly-aarch64-pc-windows-msvc (default)

PS C:\...> rustup target list
aarch64-apple-darwin
...
aarch64-pc-windows-msvc (installed)
...
arm64ec-pc-windows-msvc (installed)
...

PS C:\...> cargo version
cargo 1.85.0-nightly (20a443231 2024-12-06)

.vscode/launch.json

{
    "configurations": [
        {
            "type": "lldb",
            "request": "launch",
            "name": "Cargo launch",
            "cargo": {
                "args": [
                    "build",
                    "--bin xml_converter",
                    "--target aarch64-pc-windows-msvc"
                ]
            },
            "args": []
        }
    ]
}

settings.json

{
...
    "rust-analyzer.debug.engine": "ms-vscode.cpptools",
    "rust-analyzer.server.path": "C:/DevOps/rust/rust-analyzer-aarch64-pc-windows-msvc/rust-analyzer.exe",
}

Based on the error it seems like the debugger extension you are using doesn't support arm64. Rust analyzer doesn't have anything to do with this. It only requests the debugger extension you already installed to start debugging an executable it specified.

Also your launch.json and settings.json seem to be conflicting about which debugger extension to use. Launch.json seems to suggest using the CodeLLDB extension, while settings.json seems to suggest using Microsoft's C++ tools extension. Which of these two are you actually using when it fails debugging? Maybe try the other extension.