Skip to content

Instantly share code, notes, and snippets.

@danharper
Created June 26, 2015 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danharper/e3392c6ac24362564028 to your computer and use it in GitHub Desktop.
Save danharper/e3392c6ac24362564028 to your computer and use it in GitHub Desktop.
enable Chrome Dev Tools debugging of PhoneGap Build apps on Android

Inside config.xml add the following attribute to the widget element:

xmlns:android="http://schemas.android.com/apk/res/android"

(For example, it looks like this for me:)

<widget id="com.radweb.ibgo"
        version="3.0.0"
        versionCode="300"
        xmlns="http://www.w3.org/ns/widgets"
        xmlns:cdv="http://cordova.apache.org/ns/1.0"
        xmlns:gap="http://phonegap.com/ns/1.0"
        xmlns:android="http://schemas.android.com/apk/res/android">

Then, within the widget element add:

<gap:config-file platform="android" parent="/manifest">
  <application android:debuggable="true" />
</gap:config-file>

Boom. Now just connect your Android device via USB to your machine, go to chrome://inspect then load the app on your device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment