diff --git a/src/tim/engine/ast.nim b/src/tim/engine/ast.nim
index 09be7b3..fb59071 100755
--- a/src/tim/engine/ast.nim
+++ b/src/tim/engine/ast.nim
@@ -488,6 +488,9 @@ proc `$`*(x: Ast): string =
     else:
       toJson(x)
 
+proc debugEcho*(node: Node) =
+  echo pretty(toJson(node), 2)
+
 #
 # AST Generators
 #