Run Android -> display console/log


#1

Hi Folks,

I’m wondering how to launch a console when testing my app on Android (#ionic run android). Is there any configuration ? I have no log and no message helping debugging.

Many thanks,


#2

For this you have a few options. If you’re debugging ios app, you can use safari’s remote inspection. If your using android 4.4, you can remote debug from chrome.

Anything below 4.4, you’ll need to use weinre

http://people.apache.org/~pmuellr/weinre-docs/latest/Home.html


#3

Keep your mobile connected with ur system,
do abd shell and then logcat


#4

or use http://developer.android.com/tools/help/monitor.html

Apply a cordova filter on the log to only see the cordova logs


#5

I have just done the following
Installed ADB, in mac you can install by using brew
Connect you device to the system and enabled USB debugging.
Use chrome://inspect to see all the console.log messages