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
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