Skip to content

Adding #[num_enum(catch_all)] to an enum variant removes the enum's display name while debugging #132

@Sharpiro

Description

@Sharpiro

Adding #[num_enum(catch_all)] to an enum variant removes the enum's display name while debugging.

When a known enum variant occurs, instead of the name, {...} is shown signifying debug information is unavailable. It also cannot be expanded for more information and won't even show the underlying number.

When the catch_all varaint occurs it shows {0:99} which is fine since my enum is a #[repr(u16)].

rustc 1.72.0 (5680fa18f 2023-08-23)
os: win and linux tested
debugger: windbg and lldb tested

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions