debug_panic

Crates.iodebug_panic
lib.rsdebug_panic
version0.2.1
sourcesrc
created_at2018-11-21 11:43:42.600044
updated_at2020-02-10 17:38:07.395052
descriptionThis 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.
homepage
repositoryhttps://github.com/kellytk/debug_panic
max_upload_size
id97933
size3,866
Kelly Thomas Kline (kellytk)

documentation

README

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");
Commit count: 8

cargo fmt