如何在无法访问 PC 的情况下调试应用程序?
How do I debug app without access to a PC?
尽管 AIDE(我将其用作 IDE)说没有错误,但我的应用程序始终在启动时崩溃。在一周内我无法访问 PC,所以我只能使用我的 phone.
在下面试试,对我有用。
aLogcat is the well-known developer tool logcat, in the form of an
Android application.
View color-coded, scrolling (tailed) Android device (logcat) logs
directly from your phone. No USB, adb, or emailing necessary.
Set log format / level / buffer, filter logs by regex, clear log file,
save to SD.
Share logs via any application that handles plain text or HTML
sharing, including Gmail, Email, Pastedroid, Bluetooth, and others.
Install application Pastedroid to share logs via pastebin. Ensure HTML
output is disabled in preferences as this only supports plain text
logs.
Optionally save log files at specified intervals in the background.
Crashlytics 非常适合我。它可以在 https://www.crashlytics.com/ 找到。它非常容易添加到您的应用程序中,然后它将记录从安装了您的应用程序的任何设备上发现的所有崩溃和错误。错误报告可以在线找到,也可以自动通过电子邮件发送给您。崩溃报告具有发生错误的确切行号。
对于生产环境,您应该使用 ACRA(Android 的应用程序崩溃报告)https://github.com/ACRA/acra 这样的库从用户那里收集崩溃报告允许您将崩溃报告发送到任何目的地。
您可以将自己的日志文件提取以及 logcat、事件日志或无线电日志添加到报告中。
另见 BasicSetup and AdvancedUsage。
尽管 AIDE(我将其用作 IDE)说没有错误,但我的应用程序始终在启动时崩溃。在一周内我无法访问 PC,所以我只能使用我的 phone.
在下面试试,对我有用。
aLogcat is the well-known developer tool logcat, in the form of an Android application.
View color-coded, scrolling (tailed) Android device (logcat) logs directly from your phone. No USB, adb, or emailing necessary.
Set log format / level / buffer, filter logs by regex, clear log file, save to SD.
Share logs via any application that handles plain text or HTML sharing, including Gmail, Email, Pastedroid, Bluetooth, and others.
Install application Pastedroid to share logs via pastebin. Ensure HTML output is disabled in preferences as this only supports plain text logs.
Optionally save log files at specified intervals in the background.
Crashlytics 非常适合我。它可以在 https://www.crashlytics.com/ 找到。它非常容易添加到您的应用程序中,然后它将记录从安装了您的应用程序的任何设备上发现的所有崩溃和错误。错误报告可以在线找到,也可以自动通过电子邮件发送给您。崩溃报告具有发生错误的确切行号。
对于生产环境,您应该使用 ACRA(Android 的应用程序崩溃报告)https://github.com/ACRA/acra 这样的库从用户那里收集崩溃报告允许您将崩溃报告发送到任何目的地。
您可以将自己的日志文件提取以及 logcat、事件日志或无线电日志添加到报告中。
另见 BasicSetup and AdvancedUsage。