-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Unable to read value of recursive enum when debugging with lldb #118331
Comments
Same issue with VecDeque: |
Seeing this as well. The VecDequeu issue is particularly bad since it's a std library container. |
I tracked down the issue to this change: code lldb rust didn't handle it, and the change is easy from: |
in this issue: rust-lang/rust#118331 there's shown a bug where vecdeque doesn't show the values inside a vecdeque. As commented by me in the issue, this change rust-lang/rust@502df1b broke the current formatter, as it transformed capacity from a POD to a struct. This pr reads the capacity from that struct.
in this issue: rust-lang/rust#118331 there's shown a bug where vecdeque doesn't show the values inside a vecdeque. As commented by me in the issue, this change rust-lang/rust@502df1b broke the current formatter, as it transformed capacity from a POD to a struct. This pr reads the capacity from that struct.
The same thing is happening to me, can anyone tell me if there is any workaround or if it is also happening in the stable version? |
in this issue: rust-lang/rust#118331 there's shown a bug where vecdeque doesn't show the values inside a vecdeque. As commented by me in the issue, this change rust-lang/rust@502df1b broke the current formatter, as it transformed capacity from a POD to a struct. This pr reads the capacity from that struct.
The problem still persists. With the current |
@mschnell1 See vadimcn/codelldb#1142. I don't know if it's a CodeLLDB or Rust issue, though. |
Seeing this with Strings on I'm seeing this in RustRover, tried in VSCode and came across this issue. Doesn't happen with stable (
Test file setup
fn main() {
let b = String::from("hello!");
println!("Hello, world!");
} Run rust-lldbcargo build How to use rust-lldbOne liner: rust-lldb --batch -o "breakpoint set --file main.rs --line 3" -o "run" -o "v b" ./target/debug/testd Otherwise: rust-lldb target/debug/testd
breakpoint set --file main.rs --line 3
run
v b
lldb_providersIt might be an issue with lldb_providers, these show the formatted output. |
yep. Reproduced here. Days to find out when I finally switched back to stable. stable-x86_64-unknown-linux-gnu unchanged - rustc 1.81.0 (eeb90cd 2024-09-04) |
I don't know if this is related anyhow.... |
This is to work around [this issue](rust-lang/rust#118331) in the rust debugger
This is to work around [this issue](rust-lang/rust#118331) in the rust debugger
Hello,
I'm currently facing an issue preventing me from debugging some code where recursive enums are involved. I cannot read the value from the debugger (LLDB using the extension from Vadim Chugunov on VSCode), instead I get the following error message in vscode: "<error: invalid value object>". Other types are readable, even non-recursive enums.
A picture is worth a thousand words so here it is:
The code to reproduce is simple:
Ideally, I would be able to troubleshoot the content of the variable.
Here is the version of rust I'm using:
I have the same problem with the nightly
I think this might not be a bug but rather a use case not yet properly handled by rust and/or lldb. Does anyone know?
Thanks in advance.
The text was updated successfully, but these errors were encountered: