Reputation: 20100
My application gives an anr while debugging on my Samsung Galaxy Tab. The device is viewable in DDMS in Eclipse, and I can browse the sdcard with the DDMS file explorer. But I cannot browse into the data directory (when I click the drop down arrow next to this directory, it appears the directory is open). Any tips how I can obtain the file?
Upvotes: 25
Views: 23903
Reputation: 2613
for Android Pie+
adb bugreport ./bugreport.zip
and you will get then in zip file
bugreport/FS/data/anr/*
bugreport/FS/data/tombstones/*
Upvotes: 37
Reputation: 1
Try this command. it is hassle free.
adb shell "cat /data/anr/traces.txt" | less
Upvotes: 0
Reputation: 4009
On some devices the traces file is called traces.txt.bugreport
for whatever reason. See the other answers for pulling the file to your device.
Upvotes: 1
Reputation: 885
You can fetch the file using the following command:
adb pull /data/anr/traces.txt
Hope this helps, Francisco.
Upvotes: 42