[antlr-interest] Problem with remote debugging
RoesslerWolfgang
contact at roessler-wolfgang.de
Tue Dec 29 15:28:11 PST 2009
Hi,
I have generated the parser with the -debug option (and the parser uses
DebugParser instead of Parser, I have checked that). Both, ANTLRWorks and
the IDE stop for the handshake, but not for other breakpoints.
Greets
Wolfgang
Johannes Luber wrote:
>
> Hi,
>
> do I understand correctly, that ANTLRworks and not the IDE doesn't stop at
> break points? If so, then did you generate the parser with the -debug
> option?
>
> Johannes
>
>> 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
>
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
>
--
View this message in context: http://n2.nabble.com/Problem-with-remote-debugging-tp4221093p4230056.html
Sent from the ANTLR mailing list archive at Nabble.com.
More information about the antlr-interest
mailing list