Debugging

Printing the AST tree to the console is possible with Checkstyle and Ktlint.

Warning

This command is no longer available in newer versions of Ktlint, use version 0.47.0.

ktlint --color printAST $file
checkstyle -T $file
checkstyle -J $file # for javadoc