diff --git a/galvan-transpiler/src/transpile_item/function_call.rs b/galvan-transpiler/src/transpile_item/function_call.rs index 5dc57a9..5ed649c 100644 --- a/galvan-transpiler/src/transpile_item/function_call.rs +++ b/galvan-transpiler/src/transpile_item/function_call.rs @@ -15,6 +15,8 @@ impl Transpile for FunctionCall { format!("println!(\"{{}}\", {})", arguments) } else if self.identifier.as_str() == "print" { format!("print!(\"{{}}\", {})", arguments) + } else if self.identifier.as_str() == "debug" { + format!("println!(\"{{:?}}\", {})", arguments) } else { let ident = self.identifier.transpile(ctx); format!("{}({})", ident, arguments)