easy-debug
A crate to easy debug rust code
Features
- ENV variable activation
- Debug only, in Release automatically disabled
Install
= "*"
or using cargo-edit
Usage
)
APP_DEBUG=1
Basic usage
use ;
let debug_str_val = "debug string value";
dbg_print!;
dbg_println!;
dbg_eprint!;
dbg_eprintln!;
Macros names with aliasing
use ;
let debug_str_val = "debug string value";
dbg_p!;
dbg_pln!;
dbg_ep!;
dbg_epln!;
Extended macros names with aliasing
use ;
let debug_str_val = "debug string value";
dbg_xp!;
dbg_xpln!;
dbg_xep!;
dbg_xepln!;
License
Licensed under either of Apache License Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.