Search code examples
androidcordovaandroid-studiovue.jsconsole.log

Display Cordova "console.log" entries in Android Studio


I have a Cordova app using Vue.js, and lots of logging using the standard Javascript/browser console.log(). Up until now I've only been targeting iOS, and those console.log messages appear in the xCode log viewer.

Now, however, I'm also targeting Android. I've successfully imported the Cordova project into Android Studio and the app is running in debug mode in the Emulator. But, I can't find the console.log output anywhere.

I think the log output should appear here, but there is nothing from my app at all.

enter image description here

I've also tried Logcat, as @Lukasz describes, which also had no effect:

enter image description here


Solution

  • I finally resolved this. I had to enable Developer Options in settings and enable USB Debugging.