未签名小程序中的极简崩溃报告

发布于 2024-12-25 18:00:15 字数 300 浏览 10 评论 0原文

我必须有哪些选项才能在未签名的小程序中进行极简的崩溃报告?

由于权限原因(我刚刚测试过),我无法使用 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 技术交流群。

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

发布评论

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

评论(1

℡Ms空城旧梦 2025-01-01 18:00:15

您会在几个战略位置放置 try-catch 吗?

是的。沙盒应用程序几乎没有其他选择。

Would you put a try-catch at several strategic places?

Yes. There are very few other options for a sand-boxed app.

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