使用 logcat 检查过去的日志?

发布于 2024-10-07 19:33:07 字数 311 浏览 0 评论 0原文

我想检查过去几个小时的堆栈跟踪。我还没有找到合适的 logcat 命令。 Android 会“忘记”这些日志吗?

第一个故事:

当我在同事的 Iphone 应用程序中发现未处理的异常时,他将 iPhone 连接到他的计算机并将堆栈跟踪读取到 x 代码中。 X-Code 还以一种很好的方式可视化异常。 有没有什么。 Android 中类似吗?

I'd like to examine stack traces from the last hours. I haven't found a proper logcat command. Does Android "forget" those logs?

First story:

When I find an unhandled exception in my co-workers Iphone App, he connects the iphone to his computer and reads the stack trace into x-code. X-Code also visualizes the exception in a nice way.
Is there a smth. similar in Android?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

夏了南城 2024-10-14 19:33:07

您可能无法看到过去几个小时的这些日志。想象一下,您的手机存储了所有日志,几天后会消耗多少空间?

所以,这就是我所做的:

You probably won't be able to see those logs from the past hours. Imagine that your phone stores all logs, how much space will it consume in a couple of days?

So, this is what I do:

  • I'm in the autobus, and suddenly the app I'm working on crashes!
  • I'd like to see what's the logcat output to analyze it at home
  • I just launch the Android log collector app, and send myself an email with the logcat output
  • I get home, have dinner, feed the dogs and then I can start working on the logtrace I emailed hours ago.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文