保存的logcat在Android设备上的文本文件 [英] Saving Logcat to a text file in Android Device

查看:423
本文介绍了保存的logcat在Android设备上的文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经找到了一些崩溃而运行在Android设备上,这是不显示在模拟器中的应用。所以我需要保存的logcat在我的设备的内存或SD卡的文本文件。能否请你建议我很好的方法来做到这一点?

解决方案

 亚行外壳的logcat -t 500 GT; D:\ logcat_output.txt
 

进入到你的终端/命令提示符并导航到该文件夹​​与亚行吧,如果尚未添加到您的环境变量并粘贴此命令。

t是您需要查看的行数

D:\ logcat_output.txt是你的logcat将得到保存

I had found some crashes while running the application in android device, which is not showing in emulator. So i need to save the Logcat in a text file in my device's memory or SD card. Could you please suggest me good method to do this?

解决方案

adb shell logcat -t 500 > D:\logcat_output.txt

Go onto your terminal/command prompt and navigate to the folder with adb in it, if its not already added to your environmental variables and paste this command.

t is the number lines you need to view

D:\logcat_output.txt is where your logcat will get stored.

这篇关于保存的logcat在Android设备上的文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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