-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Debug functionalilty broken in VS code on MacOS #16901
Comments
This was confusing since there was no setting change and the error message is misleading. Downgrading the VS Code extension allowed debugging again.
I can confirm as well that 0.3.1868 and earlier are working. All debugging is broken on and after v0.3.1877 |
The same thing happened to me. |
1 similar comment
The same thing happened to me. |
Seeing same issue and I can confirm that downgrading to v0.3.1868 solves it. |
Agree, somehow downgrading to v0.3.1868 resolved it. |
Oh, I'm able to reproduce this issue now. This problem only occurs when users have the C++ plugin installed. (This explains why I couldn't reproduce it before.) @rustbot claim |
This might be #16719. The C/C++ extension seems to work for me on Linux, but indeed, I get an empty |
Actually no: I reverted #16719 and get the same behavior:
|
In #16719, the order of the debugger changed, prioritizing "ms-vscode.cpptools", which resulted in the error. However, debugging with |
Oh 🤦. I didn't expect anyone to have multiple debugging extensions, but it makes sense with the C++ one. |
The C++ extension seems unable to debug Rust projects on Mac. This doesn't seem to be an issue related to multiple debugging extensions, as it doesn't work even when |
OK, I've found the issue with the inability to use C++ extension on Mac: currently, Apple Silicon cannot utilize GDB (due to Apple's restrictions on Kernel 😢), hence on macOS, we can only use lldb. |
Somewhat related we should probably configure the extensions to use |
fix: use lldb when debugging with C++ extension on MacOS See #16901 (comment) This PR resolves the issue of being unable to debug using the C++ extension on macOS. By using special configurations for the `MIMode` on macOS, it enables the C++ extension to connect to lldb when debugging (without affecting other platforms).
A nightly release with the fix is now available, in case anyone wants to test it. |
rust-analyzer version: 0.3.1885-standalone (b6d1887 2024-03-17)
Issue also occurs on 0.3.1877-standalone (574e23e 2024-03-09)
Does not occur on previous versions.
rustc version: rustc 1.73.0 (cc66ad468 2023-10-03)
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)Running any
#[test] > Debug
results in popup:"Unable to start debugging. Launch options string provided by the project system is invalid. Unable to determine path to debugger. Please specify the "MIDebuggerPath" option."
repository link (if public, optional): -
code snippet to reproduce:
Thank you for investigating!
The text was updated successfully, but these errors were encountered: