-
Notifications
You must be signed in to change notification settings - Fork 246
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
Rust Visualization for enum doesn't seem to be working #994
Comments
This might be a duplicate of: The weird thing is that RustRover uses lldb as well and doesn't have any issue.
but with
|
Looks like LLDB added support for rust enums here: Which isn't in a real release yet. So might be worth applying that patch to the CodeLLDB lldb? Can I provide my own lldb to the plugin? |
I can confirm that latest LLDB built from source properly displays Rust enums.
As of today, neither the version packaged with CodeLLDB nor the default that comes with Xcode do.
I tried to build a new version of the extension with the new version but I'm running into a SIGSEGV as soon as I try to debug a program.
|
cc @vadimcn Would it be possible to update the LLDB version packaged with CodeLLDB to include the fix for Rust enums? 🙂 |
Can confirm this is an issue on my system as well 👍 |
@sontek: Is your enum definition recursive? Is so, this is a dupe of #827 @MolotovCherry: enums in -windows-msvc target are known to be broken: #839, which has a different cause. |
I think so. I am using the same target you mentioned as well. Sounds like that's probably the cause. |
OS: MacOS 13.5.2 (22G91)
VSCode version: Version: 1.82.2 (Universal)
CodeLLDB version: v1.10.0
Compiler: cargo
Debuggee: Rust binary built with
cargo build
I'm debugging some rust code using VSCode + CodeLLDB and some of the visualizations show no values:
This is my launch configuration:
I was expecting to see that the
payload_type.Ok.0
is of valuePullRequest
but I wasn't able to do that. Here is a screenshot of RustRover debugging the same code:This might be a limitation of
lldb
but not sure. If I print the variable inDebug Console
it prints:My system has:
I've also installed a custom version:
but I have no idea how to tell the plugin to use these versions.
The text was updated successfully, but these errors were encountered: