ANTLR “无法启动调试器。等待连接到远程解析器超时。”

发布于 2024-08-13 15:50:02 字数 337 浏览 3 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

帅的被狗咬 2024-08-20 15:50:02

我发现 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.

白龙吟 2024-08-20 15:50:02

它可能相关,也可能不相关 - 但我们解决了这个问题,如下所示:

在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文