简体   繁体   English

如何在Android中提供带有ACRA错误报告的完整堆栈跟踪?

[英]How do I provide a full stack trace with an ACRA error report in Android?

I have an app where I use ACRA for error reporting. 我有一个使用ACRA进行错误报告的应用程序。

I recently decided to send a caught exception with ErrorReporter, and it works, albeit without any kind of stack trace. 我最近决定使用ErrorReporter发送一个捕获的异常,尽管没有任何堆栈跟踪,它仍然可以工作。 All I get is the usual system dump info, and I really need the stack traces from my users. 我得到的只是通常的系统转储信息,我确实需要用户的堆栈跟踪。

So, my question is, how do I have the app send the full details? 因此,我的问题是,我如何让该应用发送完整的详细信息?

(Note: When the app actually crashes completely, the error report sent by ACRA does include the stack trace.) (注意:当应用程序实际上完全崩溃时,ACRA发送的错误报告的确包含堆栈跟踪。)

Here's a screenshot: screenshot 这是屏幕截图: 屏幕截图

EDIT 编辑

I kept looking deeper in the reports, and as it turns out, ACRA's just reporting the stack trace to another column that's never really been used before: tags. 我一直在研究报告中更深入地研究,事实证明,ACRA只是将堆栈跟踪报告给以前从未真正使用过的另一列:标记。 So, perhaps just a bug or something in ACRA. 因此,可能只是ACRA中的错误或其他内容。

You should follow the ACRA tutorial and full instruction guide page. 您应该遵循ACRA教程和完整的指导指南页面。 All you need is to create a from in google docs account . 您所需要做的就是在Google文档帐户中创建一个。 After creating a form a key will be generated that you have to save it and apply it in your application java file of you android application project.With minor changes in manifest and application java file you can successfully integrate ACRA. 创建表单后,将生成一个密钥,您必须将其保存并应用到您的android应用程序项目的应用程序Java文件中。只需对清单和应用程序Java文件进行少量更改,就可以成功集成ACRA。

Follow the given link. 按照给定的链接。 https://github.com/ACRA/acra/wiki/BasicSetup https://github.com/ACRA/acra/wiki/BasicSetup

it will come in STACK_TRACE column of your form like these 它将出现在您的表单的STACK_TRACE列中,如下所示

在此处输入图片说明

ACRA.getErrorReporter().handleException(caughtException); ACRA.getErrorReporter()。handleException(caughtException);

See https://github.com/ACRA/acra/wiki/AdvancedUsage#wiki-Sending_reports_for_caught_exceptions 参见https://github.com/ACRA/acra/wiki/AdvancedUsage#wiki-Sending_reports_for_caught_exceptions

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM