-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Debugging the compiler
Dominik Picheta edited this page Aug 9, 2014
·
4 revisions
echo renderTree(someNode) # pretty prints the nimrod ast
debug(someNode) # outputs some JSON representation
echo typeToString(someType) # pretty prints some type
debug(someType)
echo symbol.name.s
debug(symbol)
echo renderTree(someNode, {renderIds}) # pretty prints the nimrod ast, but annotates symbol IDs
if n.info ?? "temp.nim": echo renderTree(n) # only output when it comes from "temp.nim"
if n.info ?? "temp.nim": writeStackTrace() # why does it process temp.nim here?
Intro
Getting Started
- Install
- Docs
- Curated Packages
- Editor Support
- Unofficial FAQ
- Nim for C programmers
- Nim for Python programmers
- Nim for TypeScript programmers
- Nim for D programmers
- Nim for Java programmers
- Nim for Haskell programmers
Developing
- Build
- Contribute
- Creating a release
- Compiler module reference
- Consts defined by the compiler
- Debugging the compiler
- GitHub Actions/Travis CI/Circle CI/Appveyor
- GitLab CI setup
- Standard library and the JavaScript backend
Misc