Macro tdbg::tdbg

source · []
macro_rules! tdbg {
    ($e:expr) => { ... };
}
Expand description

Macro that will send the message to the tdbg server.

Example

Make sure to run the server beforehand.

use tdbg::tdbg;

fn process_message() {
    // Very long and complex code
    // ---- 8< ----

    if unlikely_condition {
        tdbg!("message");
        // Emergency actions
        // ---- 8< ----
    }
     
    // ---- 8< ----
}

fn close_socket() {
    // Closing socket properly
    // ---- 8< ----
    tdbg!("close");
}