#debug #panic #debugging

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 13/week @ 2018-11-21

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