1 stable release
1.0.0 | Aug 11, 2020 |
---|
#370 in Debugging
2,263 downloads per month
Used in 26 crates
(17 directly)
6KB
debug_print
Examples
use debug_print::{debug_print, debug_println, debug_eprint, debug_eprintln};
let x = 5 * 2;
debug_println!("x = {}", x);
debug_print!("x");
debug_print!(" = ");
debug_print!("{}", x);
debug_eprintln!("I'm printing to the Standard Error");
debug_eprint!("I'm printing to the Standard Error");
If you don't like the names of the macros.
use debug_print::{
debug_print as dprint,
debug_println as dprintln,
debug_eprint as deprint,
debug_eprintln as deprintln,
};
let x = 5 * 2;
dprintln!("x = {}", x);
dprint!("x");
dprint!(" = ");
dprint!("{}", x);
deprintln!("I'm printing to the Standard Error");
deprint!("I'm printing to the Standard Error");
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.