Remote Debugging in Phonegap with Chrome Devtools

March 07, 2014

The requirements are:

  • Phonegap 3.3 or higher
  • An android device running Android 4.4 Kitkat or higher
  • Chrome 30+ on the desktop

Here’s the steps to get setup:

  1. Enable usb debugging on your phone

  2. Update your phonegap app to API Level 19 (Kitkat).

    In AndroidManifest.xml change this line:

    <uses-sdk android:minSdkVersion="17" android:targetSdkVersion="19" />

    In, change this line:


  3. Enable WebViews for debugging

    In platforms/android/src/com/yourAppName/, add the following lines under the other import statements:

    import android.os.Build;
    import android.webkit.WebView;

    And add the following inside the onCreate method:

  4. Remote Debug

    Run the app on your phone, and in Chrome type about:inspect in the address bar. Then you should see your device and app listed. Click inspect and you’ll be able to do everything you would normally be able to do with Chrome Devtools.

    chrome devtools


Profile picture

Written by Adam Garrett-Harris, a podcaster and software engineer in Utah. You should follow him on Twitter