[antlr-interest] [antlr-dev] ANTLRWorks debugger

Terence Parr parrt at cs.usfca.edu
Sun Mar 1 11:12:55 PST 2009


Holy cow!  Ok, apparently we change the port in ANTLRWorks, but not in  
the Java target nor the other targets!  I'm wondering why AW  
works...oh, must be my preferences. crap. okay, changing my target.

Ter
On Mar 1, 2009, at 3:19 AM, Benjamin Niemann wrote:

> 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
>>
>>
> _______________________________________________
> antlr-dev mailing list
> antlr-dev at antlr.org
> http://www.antlr.org/mailman/listinfo/antlr-dev



More information about the antlr-interest mailing list