Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 758
hholtij Avatar asked Aug 03 '16 13:08

hholtij


1 Answers

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.
like image 184
nahoang Avatar answered Oct 12 '22 22:10

nahoang