title: ANTLRWorks Debugger
body: <p>I have a small code for which I want to see the AST in ANTLRWorks. In the preferences, I have chosen the compiler as 'com.sun.tools.javac' and the debugger is set as port '49100' and the time out is '20 seconds'.</p>
  
  <p>The code is :</p>
  
  <hr>
  
  <pre><code>grammar try;
  options {output=AST;}
  tokens { MULT; } // imaginary token
  
  poly: term ('+'^ term)*
  ;
  
  term: INT ID  -&gt; ^(MULT["*"] INT ID)
  | INT exp -&gt; ^(MULT["*"] INT exp)
  | exp
  | INT
  | ID
  ;
  exp : ID '^'^ INT
  ;
  
  ID  : 'a'..'z'+ ;
  INT : '0'..'9'+ ;
  WS  : (' '|'\t'|'\r'|'\n')+ {skip();} ;
  </code></pre>
  
  <hr>
  
  <p>When i debug, I give the input text as '9a + 2b' and then it tries to connect and finally it gives the error 'Cannot launch the debuggerTab'.</p>
  
  <p>I have disabled my antivirus and firewall as well. What could be the problem here?</p>