#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

#663 in Debugging

Download history 7134/week @ 2024-07-22 6239/week @ 2024-07-29 6164/week @ 2024-08-05 6697/week @ 2024-08-12 7011/week @ 2024-08-19 5458/week @ 2024-08-26 4850/week @ 2024-09-02 7166/week @ 2024-09-09 6544/week @ 2024-09-16 7228/week @ 2024-09-23 6575/week @ 2024-09-30 8607/week @ 2024-10-07 7551/week @ 2024-10-14 9469/week @ 2024-10-21 7219/week @ 2024-10-28 5724/week @ 2024-11-04

30,121 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