How to read '/data/anr/traces.txt' in samsung S2

I am developing an application and it accidentally crashes. I will finally catch the logarithm when it works.

here are the lines i got

01-30 01:04:47.281    2856-2856/com.snappext:hascode_process I/System.out﹕ Done
01-30 01:05:02.617    2856-2861/com.snappext:hascode_process I/dalvikvm﹕ threadid=3: reacting to signal 3
01-30 01:05:02.640    2856-2861/com.snappext:hascode_process I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
01-30 01:05:39.304    2750-2752/com.snappext D/dalvikvm﹕ GC_CONCURRENT freed 830K, 14% free 11618K/13383K, paused 1ms+3ms

now I need to know how to read '/data/anr/traces.txt' I use my Samsung S2 for testing

+4
source share
3 answers

you can use this cmd

adb pull /data/anr/traces.txt

you will need to go to the adb folder when installing Android.

+4
source

You can try to do adb shell "ls /data/anr"which will list all the trace files in this directory. At least on my device I do not have permission to list the folder /data, but I do for/data/anr

LG G3, , /data/anr/traces.txt, . , Xamarin/Mono , /data/anr/traces_<PKG_NAME>.txt, <PKG_NAME> - Android- , . _ (ex: com.my.projectcom_my_project).

, , traces00.txt, traces01.txt,... traces10.txt. , "" traces.txt , "" ".txt"

+3

If you are using Windows:

In step 4, you may get some errors:

0
source

All Articles