Macro rdbg::msg

source ·
macro_rules! msg {
    ($port:expr, [ $($arg:tt)* ]) => { ... };
    ($($arg:tt)*) => { ... };
}
Expand description

Send a debug message to the remote viewer

// Default port
let world = "world!";
rdbg::msg!("Hello {}", world);
flush();

// Custom port
let debug = rdbg::port(5000);
rdbg::msg!(&debug, ["Hello {}", world]);
debug.flush();