Search code examples
androidadbionic2

ionic 2: How can I get console messages from android device


I am deploying debug builds to my android phone via ionic run android.

How can I view console.log messages?


Solution

  • When you deploy app to your android phone, you can show the error log in google chrome.

    Steps by step instructions:

    • Connect your device to your computer
    • Run adb devices ("C:\Users\AppData\Local\Android\sdk\platform-tools") to display name of devices (you may not need this step)
    • Run google chrome and type "chrome://inspect/#devices" .
    • Choose "inspect" for your app.