firedbg-lib 0.1.0

FireDBG Support Library
Documentation

FireDBG Support Library

fire::dbg!

This macro allows you to capture the value of a variable via runtime inspection in FireDBG. Usage example:

use firedbg_lib::fire;

fn some_fn(v: i32) -> i32 {
    fire::dbg!(v) + 1
}

Which fire::dbg!(v) would expand to __firedbg_trace__("v", v) when compiled under debug mode. In release mode, it would expand to a unit expression, i.e. { v }.

Note that the function passes through the ownership of the variable, like the [std::dbg!] macro.

fn __firedbg_trace__<T>(v: T) { v }