Display Cordova "console.log" Entries In Android Studio
Solution 1:
You should try to use chrome inspect as described here:
https://developers.google.com/web/tools/chrome-devtools/remote-debugging/
If you really want to see the console.log statements from inside the Android Studio you can use logcat View -> Tool Windows -> Logcat. Remember to filter it by 'CONSOLE' statement like I did on the image below.
Solution 2:
I finally resolved this. I had to enable Developer Options in settings and enable USB Debugging.
Solution 3:
If you're not seeing console.log in LogCat, ensure your application is debuggable. This will be true for apps run from Android Studio (I think) but if you're debugging a 3rd party APK like I am, it won't. Maybe this will save someone the 3 hours I wasted on it.
So ensure android:debuggable="true"
is there in the application
tag of of your AndroidManifest.xml file
Post a Comment for "Display Cordova "console.log" Entries In Android Studio"