Debugging the compiler

Dominik Picheta edited this page Aug 9, 2014 · 2 revisions
echo renderTree(someNode)  # pretty prints the nimrod ast
debug(someNode)  # outputs some JSON representation
echo typeToString(someType) # pretty prints some type
echo renderTree(someNode, {renderIds})  # pretty prints the nimrod ast, but annotates symbol IDs
if ?? "temp.nim":  echo renderTree(n)  # only output when it comes from "temp.nim"
if ?? "temp.nim":  writeStackTrace()  # why does it process temp.nim here?