16

I want to remote debug an Android app on Chrome. My device is Qmobile A11 Note with Android v4.0.4, Google Chrome v42 and Cordova v3.7.

I have enabled USB debuging on my device.

I was following this article. My problem is when I open this link in chrome chrome://inspect/#devices it show my device but with no inspect link. Here is the screenshot

enter image description here

How can I inspect or remote debug, what's missing? I have worked with this before and Chrome was showing the Inspect link at that time.

9 Answers 9

15

If you app is signed-released version then you can't be able to see under chrome://inspect. Because released version are disable the debugging mode.

Use only debug version apk for chrome://inspect.

Sign up to request clarification or add additional context in comments.

2 Comments

Don't know from where did you got this info, but saved me a lot of trouble.
You can read more detail at here developer.android.com/guide/topics/manifest/….
6

For application debugging you need android 4.4+ OS device. OS version of your Qmobile A11 is 4.0. For more info please refer : https://developer.chrome.com/devtools/docs/remote-debugging

For browser debugging(if you host your app as webapp) Android 4.0+ is enough.

If you are using cordova 4.0+ then you can add crosswalk(https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview) as a plugin by which you can bundle chromium instance in the apk so with Andorid 4.0+ device also you can use device inspector.

3 Comments

there must be another way on adroid earlier than 4.4 should i use lower version of chrome?
The built in webview does not have that capability. However, if you absolutely need this feature you could try using intel's crosswalk-project.org. It replaces the default webview with a chromium instance and is easy to use with Cordova 3.7 (and actually just became a first class citizen with the newest cordova release -- see github.com/crosswalk-project/cordova-plugin-crosswalk-webview though this approach needs cordova cli 5.0)
The information you provided regarding the android 4.4+ is contradicted by the same link from developer.chrome.com where it clearly states that the minimum requirement is 4.0
2

Your project must be enable WebContentsDebugging, it will work fine on android 4.4 or above

 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)
 {
    WebView.setWebContentsDebuggingEnabled(true);
 }

Comments

1

try this :

  1. Go to http://adbdriver.com/downloads/ download and check if your adb driver is install right or not ? If wrong , please reinstall it.
  2. Access to C:\Users\NAME\AppData\Local\Android\android-sdk\platform-tools , open cmd from here ( Shift + right click) and type : adb devices . You should see a device in the list.
  3. Back to your chrome://inspect/#devices and you will see your devices ready for inspect .

Comments

1

If you are using production build apk which doesnt have any debugging info, you might be getting this issue. If that is the case, inspect would show the device listed but not the app inspect link.

Use the debuggable apk.

Comments

0

For me the problem was a missing step from the Remote debugging guide:

  • Go to Chrome on Android's Settings -> Developer tools
  • 'Enable USB Web debugging'

Comments

0

For those who are using Intel XDK to build hybrid apps, add <preference name="debuggable" value="true" /> to intelxdk.config.additions.xml file. In general, you must set debuggable property true if you want to use this functionality. Note that XDK set debuggable to false by default.

Comments

0

just try to kill the adb server and start again.

adb kill-server
adb start-server

this can help to show the inspect button in the remote debugging

Comments

-2

REMOTE DEVICE DEBUGGING WON'T WORK IF THE APP ON YOUR PHONE IS PRODUCTION BUILD AND SIGNED.

DEPLOY THE APP TO YOUR PHONE DIRECTLY AND TRY IT.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.