7

I'm trying to debug a Website in Chrome on an Android device. For this I'm following the official remote debugging guide.

Things are working up to 6. Make sure that Discover USB devices is enabled., but then in point 7. Connect your Android device directly to your development machine using a USB cable., the device is not showing up. Also on the device, I do not get the the Allow USB Debugging permission prompt as described in point 8.

The device has USB Debugging enabled, and Windows recognises the device.

I'm able to connect to the device using Android Studio, and then use Chrome remote debugging. But it looks like overkill to install several GigaBytes just to be able to clic ont the Allow USB Debugging permission prompt on the device.

What can I do to launch remote debugging without installing Android Studio ?

2 Answers 2

6

If you turn on Developer options on your Android device, you should be able to toggle USB Debugging from there. Download the standalone ADB package or install Android Studio. Run adb server in the command line. Connect it and then the prompt to accept the device's RSA key fingerprint should appear and you should be good to go.

The docs do a better job of showing the step-by-step process https://developers.google.com/web/tools/chrome-devtools/remote-debugging/

P.S. if you'd like to test this multiple times on the same two devices you can click Revoke USB debugging authorizations in the Developer options to revoke all previously connected devices' RSA keys.

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

3 Comments

You just linked the guide, I'm following already. See the question. The problem is that there is no prompt.
Did some more testing/research. The moment you do adb server in the command line, the Android device receives the prompt. Therefore, all you need to do is download the standalone ADB package. Here is a link for how to do that on a Windows machine.
Thanks. I will try this out.
1

For those landing here from Google: my problem was a bad cable shipped with the device (Samsung Galaxy A03). It only charged but did not transfer data. I bought a decent third-party cable and it started working.

1 Comment

Pretty sure this was my problem. I would have kept looking had I not seen your answer, thanks!

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.