最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】ANTLRWorks调试出错:Cannot launch the debuggerTab. Time-out waiting to connect to the remote parser

ANTLR crifan 3749浏览 0评论

【问题】

在折腾:

【记录】尝试使用ANTLRWorks 1.5开发

的过程中,去调试:

antlrworks run debug

click ok to debug

结果先是准备:

operation in progress preparing

再是连接:

operation in progress connecting

结果出错:

Cannot launch the debuggerTab Time-out waiting to connect to the remote parser

【解决过程】

1.参考:

[antlr-interest] Cannot launch the debugger Time-out waiting to connect to the remote parser

去试试:

netstat -aon | find /i "49100"

结果没有被占用:

run netstat not found 49100

2.去试试debug remote:

run debug remote

connet to remote parser

结果错误依旧,还是和上面一样,连接超时。

3.看到后面的:

http://www.antlr.org/pipermail/antlr-interest/2009-November/036600.html

解释好像说,是需要下载那个代码:

http://www.280z28.org/downloads/antlr-dotnet-source-3.2.0.6288.7z

然后再去用VS编译的。不太懂。

4.参考:

Getting error message: Cannot launcht the debuggerTab

但是也没用。

因为其一个说是从java7换成java6,一个说是在x64的win7上用了32位的java6

而我这里,都确保是正常的。是装的java6,且是x64的java6,装在当前的x64的win7上的:

C:\Users\CLi>java -version            
java version "1.6.0"            
Java(TM) SE Runtime Environment (build 1.6.0-b105)            
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)

5.ANTLR “Cannot launch the debugger. Time-out waiting to connect to the remote parser.”

说是防火墙的问题。

此处感觉不像,暂时先不管。

6.又去Help->About中确认了一下:

java indeed is 1.6.0_37

7.也去File->Preferences:

file preferences

看到的Debugger的设置,也是看起来都正常的:

debugger settings is ok

8.后来去确定当前的CLASSPATH的路径中,包含了对应的antlr的jar:

D:\DevTool\DD_Parser\Parser\ANTLR\antlr\antlr-4.0-complete.jar

9.去确认了下,之前对于JAVA的网络,是运行访问的:

java tm allow network

【总结】

暂时还未解决。


【后记 2013-01-25】  
后来折腾:

【已解决】ANTLRWorks 1.5编译代码出错:Compiler failed with result code 1

的过程中,确定了结果是:

antlrworks 1.5的兼容性有点问题,需要换用更低版本的,1.4或1.3或1.2系列版本的,都是可以正常使用的。

就不会出现后面一系列的问题,包括此处的问题了。


【后记 2013-03-28】

后来,别人,遇到类似问题。

但是是用的是antlrworks 1.5rc2,之前一直可以正常调试了。

但是突然遇到此问题:

Cannot launch the remote parser because port 49100 is already in use

Cannot launch the remote parser because port 49100 is already in use

 

然后经过别人折腾,发现:

(具体设置位置:File->Preferences->Debugger->Default local port)

把antlrworks的端口,从默认的49100,改为别的值,重新调试一下;

然后再改回49100,最终就可以解决此问题了。

转载请注明:在路上 » 【已解决】ANTLRWorks调试出错:Cannot launch the debuggerTab. Time-out waiting to connect to the remote parser

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
89 queries in 0.172 seconds, using 22.11MB memory