如何将 LogCat 内容保存到文件? [英] How to save LogCat contents to file?

查看:53
本文介绍了如何将 LogCat 内容保存到文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了调试字符串(使用 Log.d())并希望在 logCat 内容的上下文中查看它们.LogCat 的保存"图标有保存所选项目"的提示,但是必须有一种快速的方法来保存整个内容,或者选择整个内容,但我不知道该怎么做.

I've added debug strings (using Log.d()) and want to see them in context from the contents of logCat. The "save" icon for LogCat has a "Save selected items" hint, but there's got to be a quick way to just save the entire contents, or select the entire contents, but I don't see how to do it.

推荐答案

您没有得到想要的答案,是吗.

You are not getting the answer you are looking for, are you.

做你想做的两种方式:

  1. 在 logcat 消息窗口中右键单击,选择全选.然后您的保存将是该窗口中的所有 logcat 消息(包括滚动出视图的消息).
  2. 当焦点在 logcat 消息窗口中时,键入 control-A,这将选择所有消息.然后保存等等.

这篇关于如何将 LogCat 内容保存到文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆