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. B
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.
You can fetch the file using the following command:
adb pull /data/anr/traces.txt
Hope this helps, Francisco.
for Android Pie
adb bugreport ./bugreport.zip
and you will get then in zip file
bugreport/FS/data/anr/*
bugreport/FS/data/tombstones/*
Try this command. it is hassle free.
adb shell "cat /data/anr/traces.txt" | less