#debug #panic #debugging #program

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.

3 releases

0.1.2 Nov 21, 2018
0.1.1 Nov 21, 2018
0.1.0 Nov 21, 2018
Download history 17/week @ 2018-11-21 15/week @ 2018-11-28 18/week @ 2018-12-05 7/week @ 2018-12-12 4/week @ 2018-12-19 27/week @ 2018-12-26 7/week @ 2019-01-09 6/week @ 2019-01-16 3/week @ 2019-01-23 1/week @ 2019-01-30 2/week @ 2019-02-06

4 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