Crates.io | oopsie_woopsie |
lib.rs | oopsie_woopsie |
version | 4.0.0 |
source | src |
created_at | 2023-06-08 14:47:47.227304 |
updated_at | 2023-09-24 09:48:29.788878 |
description | A crate to make debugging unexpected panics easier on end-user machines. |
homepage | |
repository | https://github.com/Normantas/oopsie-woopsie |
max_upload_size | |
id | 885541 |
size | 10,713 |
A crate to make debugging unexpected panics easier both on end-user machines. Provides a panic handler which generates a helpful panic message and saves a backtrace, system information and minidump to a file. This is intended to be used only on builds that are distributed to other people.
fn main() {
// Add #[cfg(not(debug_assertions))] here if you want to only enable these in release builds
std::panic::set_hook(Box::new(|panicinfo: &std::panic::PanicInfo| {
oopsie_woopsie::set_panic_handler(panicinfo, &oopsie_woopsie::PanicHandlerConfig{
file_dir: Some("D:/Projects/oopsie_woopsie_test".into()),
})
}));
panic!("Goodbye, world!");
}