javascript - Cordova - How to see errors and console.log in Android Emulator - Stack Overflow

I'm building an app for Android using Cordova & html,JS. And using the Android emulator from t

I'm building an app for Android using Cordova & html,JS. And using the Android emulator from the plain SDK Manager. I seem to have a lot of isues with my code, but I can't figure out what. So I need to check for errors in the console log like we do with browsers.

The only thing I've managed to do is use is the adb -e logcat > logcat.txt mand. Yet the output file is way too convoluted for me. And when I filter the output using adb -e logcat > logcat.txt io.cordova.app:D *:S, the output file contains only

--------- beginning of main --------- beginning of system

What can I do about it? Is there any other way learning the errors of my code?

I'm building an app for Android using Cordova & html,JS. And using the Android emulator from the plain SDK Manager. I seem to have a lot of isues with my code, but I can't figure out what. So I need to check for errors in the console log like we do with browsers.

The only thing I've managed to do is use is the adb -e logcat > logcat.txt mand. Yet the output file is way too convoluted for me. And when I filter the output using adb -e logcat > logcat.txt io.cordova.app:D *:S, the output file contains only

--------- beginning of main --------- beginning of system

What can I do about it? Is there any other way learning the errors of my code?

Share Improve this question edited Jul 20, 2016 at 17:01 asked Jul 20, 2016 at 13:38 user4679730user4679730
Add a ment  | 

1 Answer 1

Reset to default 3

If you have started the emulator through Eclipse you can see the logs in Logcat.

Window -> Show View -> Android -> LogCat

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745479472a4629499.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信