You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue with CodeLLDB while debugging my Rust project in VSCode.
I'm new to both Rust and CodeLLDB, and I'm having trouble with local variables not showing up when I set a breakpoint inside a method within an impl block for a struct. Specifically, a string variable that should appear as a local variable in the top left isn't showing up (see the image below).
In other situations, like in a normal function, the variable information displays as expected (see the second image below).
I suspect this may be a CodeLLDB bug. I don't think the variables are being optimized out by the compiler since the string is used in a println! macro, and it doesn't seem to be optimized out in other examples where the variable information does show up.
Has anyone else encountered this issue or know how to resolve it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm encountering an issue with CodeLLDB while debugging my Rust project in VSCode.
I'm new to both Rust and CodeLLDB, and I'm having trouble with local variables not showing up when I set a breakpoint inside a method within an impl block for a struct. Specifically, a string variable that should appear as a local variable in the top left isn't showing up (see the image below).
In other situations, like in a normal function, the variable information displays as expected (see the second image below).
I suspect this may be a CodeLLDB bug. I don't think the variables are being optimized out by the compiler since the string is used in a println! macro, and it doesn't seem to be optimized out in other examples where the variable information does show up.
Has anyone else encountered this issue or know how to resolve it?
Beta Was this translation helpful? Give feedback.
All reactions