#panic #feedback #immediately #caller #terminate #message #statement

debug_panic

This allows a program to terminate immediately and provide feedback to the caller of the program. Unlike panic!, debug_panic! statements are only enabled in non optimized builds by default.

4 releases

Uses old Rust 2015

0.2.1 Feb 10, 2020
0.1.2 Nov 21, 2018
0.1.1 Nov 21, 2018
0.1.0 Nov 21, 2018

#686 in Debugging

Download history 7064/week @ 2024-08-16 6172/week @ 2024-08-23 4130/week @ 2024-08-30 6909/week @ 2024-09-06 7170/week @ 2024-09-13 6658/week @ 2024-09-20 6443/week @ 2024-09-27 8340/week @ 2024-10-04 8403/week @ 2024-10-11 8560/week @ 2024-10-18 8365/week @ 2024-10-25 5657/week @ 2024-11-01 5329/week @ 2024-11-08 6658/week @ 2024-11-15 7172/week @ 2024-11-22 4396/week @ 2024-11-29

24,871 downloads per month

MIT license

3KB

debug_panic

This allows a program to terminate immediately and provide feedback to the caller of the program. Unlike panic!, debug_panic! statements are only enabled in non optimized builds by default.

Example usage

// panic
debug_panic!();

// panic with a custom message
debug_panic!("panic");

No runtime deps