Documentation

gdbg

Provides the [1] missing dbg! macro for Gear smart contracts.

Example

use gdbg::dbg;

#[no_mangle]
extern "C" fn init(){
  let payload = String::from_utf8(msg::load_bytes().expect("Failed to load a message"))
    .expect("Invalid init message");
  dbg!(&payload);
}

References