[][src]Macro ckb_std::debug

macro_rules! debug {
    ($fmt:literal) => { ... };
    ($fmt:literal, $($args:expr),+) => { ... };
}

debug macro

Output a debug message. This macro only compiled under debug build and does nothing in release build.

Notice: to see the debug output, you must turn on ckb_script debugging log in the CKB node configuration.

Example

debug!("hello world");
debug!("there is a universal error caused by {}", 42);