Hello,

I have a problem getting remote debugging working.
I start the generated C# parser. It pauses at construction of the SclParser
and waits till I have connected ANTLRWorks with "Debug remote. The debugger
displays "Break on Commence" and when parsing continues with executing
sclParser.prog() the debugger never stops at any breakpoint or so. I see
that the grammer is correct, because of the console output. I also can't see
anything in the "Input"-window although I have enabled "Show Input Tokens".
So currently debugging is not possible. Can anybody help me?


I have the following configuration:
- ANTLR .NET runtime 3.1.1
- ANTLRWorks 1.3.1

My grammer:

grammar Scl;
options 
{
        language = 'CSharp2'; 
} 
prog    :       stat+  ;
stat    :       expr NEWLINE
        |       ID '=' expr NEWLINE
        |       NEWLINE
        ;       
expr    :       multExpr (('+' | '-') multExpr)*
        ;       
multExpr 
        :       atom ('*' atom)*
        ;       
atom    :       INT { Console.WriteLine("INT"); }
        |       ID { Console.WriteLine("ID"); }
        |       '(' expr ')' { Console.WriteLine("expr"); }
        ;       
ID      :       ('a'..'z' | 'A'..'Z')+ ;
INT     :       '0'..'9'+ ;
NEWLINE :       '\r'? '\n' ;
WS      :       (' ' | '\t' | '\n' | '\r')+ ;


My test-driver:

            ANTLRStringStream inputStream = new
ANTLRStringStream("(2+3)*5\n");
            SclLexer sclLexer = new SclLexer(inputStream);
            CommonTokenStream tokenStream = new CommonTokenStream(sclLexer);
            SclParser sclParser = new SclParser(tokenStream);
            sclParser.prog();

Thanks in advance,
Wolfgang
-- 
View this message in context: 
http://n2.nabble.com/Problem-with-remote-debugging-tp4221093p4221093.html
Sent from the ANTLR mailing list archive at Nabble.com.

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--

You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.


Reply via email to