Function rdbg::port

source ·
pub fn port(port: u16) -> RemoteDebug
Expand description

Specify a custom port for the TCP socket to listen on when using the msg and vals macros.

NOTE: The first time this function or msg or vals macros are processed determines the port. Once it is established it will not change no matter what port value is used.

let world = "world!";
rdbg::msg!(rdbg::port(5000), ["Hello {}", world]);

rdbg::vals!(rdbg::port(5000), [world, 1 + 1]);
rdbg::flush();