Skip to content

Better debugging support for variables #15407

@erenturkm

Description

@erenturkm

Hi,

I am relatively new to Rust, coming from C# and Visual Studio. I am using the rust-analyzer v0.3.1615 inside Visual Studio Code 1.80.2 Current variables support seems lot to be desired and slowing me down so much so that I had to come up with specific structs that converts these types to observable ones inside debuging window.

Examples:
This is how I see enum variables, I was hoping to see enum1 and the current value of the enum not all possibilities.
enum1
    Variant0:
        Value {_0:true}
    Variant1:
        Value:{_0:""}

I have a similar situation with Paths and OsStrs where I cant see the value:
path1: {length 5}
     length:5

I am hoping there is a way to see them, if not when are we planning to address this?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions