How do I fix a “broken” debugger in EclipseME (MTJ)?

人盡茶涼 提交于 2019-12-11 10:56:54

问题


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)


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/67559/how-do-i-fix-a-broken-debugger-in-eclipseme-mtj

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!