emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
20.61k stars 1.49k forks source link

Improve backtraces when hovering widgets with modifiers pressed #4696

Closed emilk closed 5 days ago

emilk commented 5 days ago

A useful debug-feature in egui is pressing down all modifiers keys and hovering any widget to see its backtrace (only in dev builds). Unfortunately this is incompatible with panic="abort", something I just now discovered.

So I removed panic="abort" from Cargo.toml for dev builds. If the backtrace returns empty-handed, I also suggests this as a fix to the user. Finally, I cleaned up the backtraces a bit, making them slightly shorter and more readable.