pub fn dbg<T>(string: T)where
    T: AsRef<str>,
Expand description

Prints the given string using the emscripten-defined dbg() JS function.

Arguments

  • string - The string to print.

Examples

dbg("Hello, world!");
dbg(format!("0.1 + 0.2 = {}", 0.1 + 0.2));