illicitonion / num_enum

Apache License 2.0
264 stars 34 forks source link

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

Open Sharpiro opened 1 year ago

Sharpiro commented 1 year ago

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