Debug the app on mobile

Hi,
I need to be able to see the consol.log outputs when the app is running on mobile device(As we are able to see in case of sencha touch app when we run it from Eclipse ADT).

Is there any pointers on how to do it, at least is it possible to save the logs in a log text file ?
Thanks.

1 Like

Hi, I think you can use http://app.phonegap.com/ or https://build.phonegap.com/

For Android version 4.4 + you can try -

http://phonegapblog.blogspot.com/2014/01/phonegap-re-android-44-and-webview-debug.html
http://www.thedumbterminal.co.uk/?action=showArticle&articleId=180

For Android version < 4.4 you can try -

https://www.jshybugger.com/#!/download

For Android version 4.4 you can use chrome with adb plugin

for android apps:

install your device driver to debug your device with chrome-device-debugging:
Chrome -> settings -> tools

for apple devices:
you need a mac -> open safari there you will find your connected device

For Android 4.4 & Chrome 39, it is now under More Tools > Inspect Devices.
Or just bookmark this URL
chrome://inspect/#devices

1 Like