如何读取Android的堆栈跟踪文件? [英] How to read the stack trace file in Android?

查看:180
本文介绍了如何读取Android的堆栈跟踪文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要打印的日志在屏幕上。但它显示错误是:

I'm trying to print the logs in the screen. But it's showing an error that:

无法打开堆栈跟踪文件'/data/anr/traces.txt':Permission拒绝。

Unable to open stack trace file '/data/anr/traces.txt':Permission denied.

如何访问堆栈跟踪文件?

How can I access the stack trace file?

推荐答案

所有堆栈跟踪打印在 LogCat中所以去DDMS窗口,选中 LogCat中标签

All the stack trace is printed in the LogCat so go to DDMS window and select the LogCat tab.

如果日志猫不可见从DDMS选择设备标签,并选择您的设备上,你正在测试。

If log cat is not visible select the device Tab from the DDMS and select your device on which you are testing.

如果这两个标签都没有对你可见再看看Eclipse中的左下角点击 + 标志,并选择 LogCat中

If both the Tabs aren't visible to you then see the left bottom corner of Eclipse click on the + sign and select LogCat

这篇关于如何读取Android的堆栈跟踪文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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