I want to know is there any way to know the cause of error or make android device to show the error details instead of just displaying the message 'Unfortunately App has stopped working' ?
Asked
Active
Viewed 329 times
0
-
What about reading the logcat? – Phantômaxx Jun 13 '15 at 09:04
-
Yeah I tried but couldn't find an app to display logcat correctly. If you know then please suggest one – sv_jan5 Jun 13 '15 at 09:06
-
just connect it to your PC and it will show the LogCat there. Make sure you have USB Debugging enabled – Rakshith Ravi Jun 13 '15 at 09:10
-
I use android studio on that I run the app and select 'Attach debugger to android process' but that doesn't show me error when app crashed. – sv_jan5 Jun 13 '15 at 09:13
1 Answers
2
You can check the logcat on your IDE. Or using adb command, like adb logcat
. It can also filter the message, if yout just want to see the error log, you can use adb logcat *:E
. And another choice is to output the log file to sdcard, by using adb logcat -f /sdcard/log.txt
.

KiBa1215
- 87
- 6