AFAIK, the debugger only works with the Java target. Since you have C# specific code in your first grammar:
@lexer::namespace{Parser}
@parser::namespace{Parser}
there are no .java
classes generated (or at least, none that will compile), and the debugger hangs (and times out).
EDIT
I see you're using fragment
rules in your parser rules: you can't. Fragment rules will never become a token on their own, they're only there for other lexer rules.
I've tested the grammar without the C# code in ANTLRWorks 1.4.3, and had no issues.
You could try the following:
- restarting ANTLRWorks
- changing the port the debugger listens on (perhaps the port is used by another service, or another debug-run of ANTLRWorks)
- use the most recent version of ANTLRWorks