macro_rules! debug {
($attrs:ident, $( $vars:expr ),*) => { ... };
}Expand description
This macro prints debug information to the wasm attributes and then exits without sending any additional messages. Additional information is included in the attributes like the function name.
let mut attrs = vec![];
let a = (1u32, 2u32, "Hello World".to_string());
let b = "data";
debug!(attrs, a, b); // attrs will be populated with debug information of a, b, ...
let res: Response<()> = Response::default().add_attributes(attrs); // Attributes must be manually added to the response