在 JavaME 中打印 Samsung JET 的异常堆栈跟踪
我的研究表明这个一般性问题非常受欢迎。 总的来说,没有一种解决方案适用于所有使用 CLDC/MIDP 框架的手机。
我开发了一个应用程序,适用于迄今为止测试过的所有手机(主要是诺基亚手机),但它在三星 jet S8003 上抛出 IOException。
关于如何获取该特定手机上的痕迹有什么想法吗?
My research shows the general question is an exceptionally popular.
And in the main there is no one solution for all phones using CLDC/MIDP framework.
I have developed an app that works on all the phones I have tested so far (mostly nokia's) but it throws an IOException on the Samsung jet S8003.
Any ideas as to how can possibly obtain a trace on this specific phone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我无法具体回答您的平台,但多年来我发现解决此类问题的最佳方法是在代码中实现某种跟踪工具,以便您可以看到导致该问题的代码路径例外。请参阅此问题的答案,了解如何实现此目的的一些想法:登录 J2ME。
这种方法的好处是,当客户在您从未听说过的手机型号上运行您的应用程序时,可以更轻松地调试客户问题,特别是如果他们有一种简单的方法来启用跟踪日志并将其发送自动给你。
I can't answer specifically for your platform, but over the years I've found that the best approach to these kinds of problems is to implement some kind of tracing facility in your code so that you can see the code path that led to the exception. See the answers to this SO question for some ideas on how to accomplish this: Logging in J2ME.
The nice thing about this approach is that it makes it a lot easier to debug customer problems when they run your app on a phone model you've never heard of, especially if there's an easy way for them to enable the tracelog and have it sent to you automatically.
经过多年的挫折,我创建了一个可以满足您想要的功能的工具: http://jarrut.sourceforge.net/
它的设置并不那么容易,但它附带了一个工作示例。当你让它工作后,如果没有它,你将不再做 JME 的事情。
After years of frustration I created a tool that does what you want: http://jarrut.sourceforge.net/
It's not as easy to setup as it could be, but it comes with a working example. After you get it working you will no longer do JME stuff without it.