Debugging Android: How to see console log, while using cordova?


HI everyone :slight_smile:

I just implemented [push notifications](
/native/push/) in my app.

I debugged iOS using XCode. There you can see your console logs.

My problem is now that I can’t debug Android. When I run the app on my phone using: ionic cordova run android -l -c -s --bug I can see logs, but it’s not using Cordova. How can I make sure Cordova is running and still see the logs on Android?


Does anyone have an idea how to do this?
Here is my Ionic Info btw:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms  : android 7.1.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2


    ios-deploy : 1.9.2 
    ios-sim    : 6.1.2 
    Node       : v9.4.0
    npm        : 5.8.0 
    OS         : macOS High Sierra
    Xcode      : Xcode 9.3 Build version 9E145 

Environment Variables:

    ANDROID_HOME : not set


    backend : pro


Did you remote debug the problem on the device/emulator already? Follow these instructions here to debug the problem in Chrome dev tools:


First of all thank Sujan for having my back :smiley: You always answer my problems lately! Thank you very much for that :slight_smile:

I don’t really know what you mean with your question. I can’t debug the problem on the device, since I don’t see console logs and I need Cordova.


Click the link, follow the instructions, and you will see the console logs of the app running on your device with Cordova.


Already on it! Thank you, you saved my day :slight_smile: