简体   繁体   中英

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

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 command. 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?

如果您已通过Eclipse启动模拟器,则可以在Logcat中查看日志。

Window -> Show View -> Android -> LogCat

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM