Macro libc_print::libc_dbg

source ·
macro_rules! libc_dbg {
    () => { ... };
    ($val:expr $(,)?) => { ... };
    ($($val:expr),+ $(,)?) => { ... };
}
Expand description

Prints and returns the value of a given expression for quick and dirty debugging.

An example:

let a = 2;
let b = dbg!(a * 2) + 1;
//      ^-- prints: [src/main.rs:2] a * 2 = 4
assert_eq!(b, 5);

See dbg! for full documentation.

You may wish to use libc_print::std_name::* to use a replacement dbg! macro instead of this longer name.