javascriptandroidiosdebuggingdeveloper-tools

How to view JavaScript console on Android (and iOS)?


I am creating a purely browser based app - HTML and JavaScript.

I do not have an Android IDE installed (nor one for iOS) - and would prefer not to have to install one and perform remote debugging.

Developing on my PC, I use the Chrome browser and the developer tools to view the JavaScript console in order to debug.

How can I do that on an Android tablet (or, later, iOS)? I prefer a purely browser based solution, but could accept an Android/iOS based app.


Solution

  • For Android you can use remote debugging through chrome as described here

    I'll summarize/rewrite the steps (for browser based debugging) here in case the link ever goes down.

    Requirements:

    Set up:

    If for some reason you have an older version of chrome and cannot upgrade. There is a plugin that you can install to accomplish the same thing.