未签名小程序中的极简崩溃报告
我必须有哪些选项才能在未签名的小程序中进行极简的崩溃报告?
由于权限原因(我刚刚测试过),我无法使用 UncaughtExceptionHandler
,但至少我想显示用户可以向我报告的内容。很确定我无法发送电子邮件,但至少显示调用堆栈会很好。在 Beta 测试期间,大多数异常都不足以阻止这种情况的发生。
- 您会在几个战略位置放置
try
-catch
吗? - 有什么合理的方法来捕获
事件调度线程
上抛出的异常吗?
What options do I have to do minimalist crash reporting in an unsigned applet?
I cannot use an UncaughtExceptionHandler
because of permissions (I just tested), but at least I'd like to show something that the user can report to me. Pretty sure I cannot send an email, but at least showing a callstack would be nice. During beta testing, most exceptions are not fatal enough to prevent that.
- Would you put a
try
-catch
at several strategic places? - Any reasonable way to catch exceptions thrown on the
Event Dispatch Thread
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。沙盒应用程序几乎没有其他选择。
Yes. There are very few other options for a sand-boxed app.