1 stable release

1.0.0 Aug 11, 2020

#2 in #debug-builds

Download history 1721/week @ 2023-11-20 2318/week @ 2023-11-27 3320/week @ 2023-12-04 4188/week @ 2023-12-11 2175/week @ 2023-12-18 1632/week @ 2023-12-25 2352/week @ 2024-01-01 3214/week @ 2024-01-08 3298/week @ 2024-01-15 3179/week @ 2024-01-22 2315/week @ 2024-01-29 3202/week @ 2024-02-05 3935/week @ 2024-02-12 3148/week @ 2024-02-19 3343/week @ 2024-02-26 2342/week @ 2024-03-04

13,046 downloads per month
Used in 12 crates

MIT/Apache

6KB

crates.io Documentation License License line

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.

No runtime deps