最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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
发布评论

评论列表(0)

  1. 暂无评论