[antlr-interest] ANTLRWorks debugger

Vlastimil Adamovsky vlas01 at yahoo.com
Sun Mar 1 09:05:17 PST 2009


Please, see my article in http://ironglue.wordpress.com


--- On Sun, 3/1/09, Benjamin Niemann <pink at odahoda.de> wrote:

From: Benjamin Niemann <pink at odahoda.de>
Subject: Re: [antlr-interest] ANTLRWorks debugger
To: "ANTLR-dev Dev" <antlr-dev at antlr.org>
Cc: "antlr-interest at antlr.org" <antlr-interest at antlr.org>
Date: Sunday, March 1, 2009, 6:19 AM

On Sat, Feb 28, 2009 at 9:44 PM, Filipe David Manana <fdmanana at ieee.org>
wrote:
> Holy cow!
>
> It works using port 49153 :|
> This gotta be one of the most mysterious things in the world!
> Port 49100 doesn't work, neither 50000, neither 49123, neither...

This was something that confused me a bit as well, when I started
implementing debug support for the Python target.
The default port on the server side (the parser being debugged) is
49153, but AW defaults to 49100 in the 'Remote Debugger' dialog.
Any reason for this discrepancy?

-Ben

> On Sat, Feb 28, 2009 at 8:57 PM, Andreas Meyer
<andreas.meyer at smartshift.de>
> wrote:
>>
>> Have you tried using the port 49153 from within ANTLRWorks? That
worked
>> for me. (I have ANTLR 3.1.2 but only the previous-recent version of
>> ANTLRworks, if that makes a difference).
>>
>> Andreas
>>
>> Filipe David Manana schrieb:
>> > Hello,
>> >
>> > Suddenly, I am no longer able to use the debugger. ANTLRWorks
reports
>> > that it's not capable of establishing the connection (to my
localhost).
>> > I'm using port 49100, and have no other application using
this port or
>> > blocking firewall rules:
>> >
>> >
>> > root at core2duo:~# netstat -apn | grep 49100
>> > root at core2duo:~# iptables -L
>> > Chain INPUT (policy ACCEPT)
>> > target     prot opt source               destination
>> >
>> > Chain FORWARD (policy ACCEPT)
>> > target     prot opt source               destination
>> >
>> > Chain OUTPUT (policy ACCEPT)
>> > target     prot opt source               destination
>> > root at core2duo:~#
>> >
>> >
>> > tcpdump shows me that somehow the connection is refused through
tcp
>> > reset packets:
>> >
>> >
>> > root at core2duo:~# tcpdump -i lo tcp
>> > tcpdump: verbose output suppressed, use -v or -vv for full
protocol
>> > decode
>> > listening on lo, link-type EN10MB (Ethernet), capture size 96
bytes
>> > 19:43:36.166844 IP localhost.50571 > localhost.49100: S
>> > 3500391462:3500391462(0) win 32792 <mss 16396,sackOK,timestamp
230981
>> > 0,nop,wscale 7>
>> > 19:43:36.167084 IP localhost.49100 > localhost.50571: R 0:0(0)
ack
>> > 3500391463 win 0
>> > 19:43:36.667645 IP localhost.50572 > localhost.49100: S
>> > 3504550876:3504550876(0) win 32792 <mss 16396,sackOK,timestamp
231106
>> > 0,nop,wscale 7>
>> > 19:43:36.667661 IP localhost.49100 > localhost.50572: R 0:0(0)
ack
>> > 3504550877 win 0
>> > 19:43:37.174907 IP localhost.50573 > localhost.49100: S
>> > 3518693368:3518693368(0) win 32792 <mss 16396,sackOK,timestamp
231233
>> > 0,nop,wscale 7>
>> > 19:43:37.174923 IP localhost.49100 > localhost.50573: R 0:0(0)
ack
>> > 3518693369 win 0
>> > 19:43:37.675554 IP localhost.50574 > localhost.49100: S
>> > 3529403760:3529403760(0) win 32792 <mss 16396,sackOK,timestamp
231358
>> > 0,nop,wscale 7>
>> > 19:43:37.675569 IP localhost.49100 > localhost.50574: R 0:0(0)
ack
>> > 3529403761 win 0
>> >
>> > So there's no local app listening on that port.
>> >
>> > I also tried using other ports for the debugger, although the
problem
>> > persists.
>> >
>> > Any suggestion?
>> >
>> > It was working fine some hours ago. I've even rebooted my
machine...
>> >
>> > thank you
>> >
>> >
>> > --
>> > Filipe David Manana,
>> > fdmanana at ieee.org <mailto:fdmanana at ieee.org>
>> > PGP key -
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC569452B
>> >
<http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC569452B>
>> >
>> > "Reasonable men adapt themselves to the world.
>> > Unreasonable men adapt the world to themselves.
>> > That's why all progress depends on unreasonable men."
>> >
>> >
------------------------------------------------------------------------
>> >
>> >
>> > List: http://www.antlr.org/mailman/listinfo/antlr-interest
>> > Unsubscribe:
>> >
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>> >
>>
>>
>> List: http://www.antlr.org/mailman/listinfo/antlr-interest
>> Unsubscribe:
>> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
>
>
> --
> Filipe David Manana,
> fdmanana at ieee.org
> PGP key - http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC569452B
>
> "Reasonable men adapt themselves to the world.
> Unreasonable men adapt the world to themselves.
> That's why all progress depends on unreasonable men."
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
>

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



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090301/2c851a08/attachment.html 


More information about the antlr-interest mailing list