How to read the stack trace file in Android?
I'm trying to 开发者_StackOverflow社区print the logs in the screen. But it's showing an error that:
Unable to open stack trace file '/data/anr/traces.txt':Permission denied.
How can I access the stack trace file?
All the stack trace is printed in the LogCat so go to DDMS window and select the LogCat tab.
If log cat is not visible select the device Tab from the DDMS and select your device on which you are testing.
If both the Tabs aren't visible to you then see the left bottom corner of Eclipse click on the +
sign and select LogCat
i hope your using eclipse, you can find it in ddms window.
- Open your project in Android Studio
- From the Analyze menu, click Analyze Stack Trace or Thread Dump.
- Paste the stack trace text into the Analyze Stack Trace window and click OK.
- Android Studio opens a new Stacktrace tab with the stack trace you pasted under the Run window.
精彩评论