Debugging you grammar

  1. Make sure ANTLR Studio is enabled on the project you want to debug.
  2. Make sure debugging is enabled.
  3. Put breakpoints on the lines you want the debugger to break, just like you would in your java files.


  4. Start the program.
  5. When the debugger breaks on a rule, you can press the 'Skip to next rule button' to skip to the next rule.


  6. You can step over the java code in your grammar files just like you normally would in you java files.
  7. You can open the AST view and Text Input view to give you more information about debugging.

Related pages

Enable debugging
AST view
Input Text view