如何修复“损坏的” EclipseME (MTJ) 中的调试器?

发布于 2024-07-05 19:03:19 字数 161 浏览 13 评论 0原文

如何在 EclipseME(现在的 Mobile Tools Java)中修复损坏的调试器(无法启动) )?

(这个问题有答案,很快就会从另一个问题转过来)

How do I fix a broken debugger, one that just won't start, in EclipseME (now Mobile Tools Java)?

(This question has an answer which will be transferred from another question soon)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

如此安好 2024-07-12 19:03:19

大多数调试器只是具有命令行界面的插件; 尝试从命令行运行调试器并查看它是否有效。 如果是,则检查插件配置; 您可能需要重新安装该插件。

警告:我没有使用过 EclipseME,但在 Eclipse for Ubuntu 中使用 Gnu C 调试器时遇到了类似的问题。

most debuggers are just plug-ins that also have a command-line interface; try running the debugger from the command-line and see if it works. If it does, then check the plug-in configuration; you may have to re-install the plug-in.

caveat: I have not used EclipseME, but had similar problems with the Gnu C debugger in Eclipse for Ubuntu.

暮凉 2024-07-12 19:03:19

对我来说,EclipseME 最烦人的问题是“损坏的”调试器,它无法启动。 这在文档中有介绍,但是当我第一次安装 EclipseME 时,我花了大约一个小时才找到这个技巧,一年后我回到 JavaME 开发时又花了一个小时,所以我决定也在这里分享这段知识。

如果调试器无法启动,

  1. 请打开 Eclipse“首选项”菜单中的“Java > 调试”部分,取消选中“在未捕获的异常时暂停执行”和“在编译错误时暂停执行”,并
  2. 增加底部附近的“调试器超时”对话框的延迟至少为 15000 毫秒(文档如此说;事实上,对此值进行二分搜索可以找到适合您情况的最佳延迟)。

之后,Eclipse 应该能够连接到 KVM 并运行带有调试器的 midlet。

The most annoying issue with EclipseME for me was the "broken" debugger, which just wouldn't start. This is covered in docs, but it took me about an hour to find this tip when I first installed EclipseME, and another hour when I returned to JavaME development a year later, so I decided to share this piece of knowledge here, too.

If the debugger won't start,

  1. open "Java > Debug" section in Eclipse "Preferences" menu, and uncheck "Suspend execution on uncaught exceptions" and "Suspend execution on compilation errors" and
  2. increase the "Debugger timeout" near the bottom of the dialog to at least 15000 ms (so the docs say; in fact, a binary search on this value could find optimal delay for your case).

After that, Eclipse should be able to connect to KVM and run a midlet with a debugger attached.

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