ANTLR “无法启动调试器。等待连接到远程解析器超时。”
我在 AntlrWorks 中运行的 ANTLR 语法之一抛出: “无法启动调试器。等待连接到远程解析器超时。”
过去,此消息通常会消失,但此消息会持续存在。在搜索 ANTLR 列表时(例如 http://www.antlr. org/pipermail/antlr-interest/2009-June/034659.html)有暗示该错误消息与看起来无关,但可能是语法错误。
有谁知道如何“重新启动”或在这种情况下找到错误吗?
One of my ANTLR grammars running in AntlrWorks throws:
“Cannot launch the debugger. Time-out waiting to connect to the remote parser.”
In the past this message usually goes away but this one is persistent. On searching the ANTLR lists (e.g. http://www.antlr.org/pipermail/antlr-interest/2009-June/034659.html) there are hints that the error message is nothing to do with what it seems but could be a grammar error.
Has anyone got tips as to how to "reboot" or find the bugs in this situation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现 Windows 防火墙规则确实会干扰调试器,因此请确保您没有将其设置为阻止 Java VM。
另外,尝试稍等一下,然后选择“调试远程”选项,通常调试器只需要一点时间,主进程就会超时,但调试器仍然会出现。
I've found that the Windows firewall rules can really interfere with the debugger, so make sure you haven't set it to block the Java VM.
Also, try waiting a bit and then choosing the "Debug Remote" option, often the debugger just takes a little while and the main process times out, but the debugger does still come up.
它可能相关,也可能不相关 - 但我们解决了这个问题,如下所示:
在 UNIX 机器上,它没有发生。在 Windows 上确实如此。有两个解析器规则因情况而异(例如 myfoo 和 myFOO)。当他们解决后,错误就消失了。
我更新了 ANTLRworks,但错误仍然存在,直到我们按照上面的方法“解决”它。
It may or may not relate - but we got rid of the problem as follows:
On a UNIX box it didn't occur. On Windows it did. There were two parser rules that differed by case (e.g. myfoo and myFOO). When they were resolved the error went away.
I updated the ANTLRworks but the error persisted until we "solved" it as above.