Reputation:
I'm following the steps to enable remote debugging (https://developers.google.com/chrome/mobile/docs/debugging). When I reach step 4, Chrome for Desktop returns with "This webpage is not available".
"Enable USB Web Debugging" is checked in Chrome for Android.
"USB Debugging" is enabled on my device (rooted Nexus S, CM9).
The "adb devices" command return with, "device number device".
The "adb forward..." command returns with: * daemon not running. starting it now on port 5037 * * daemon started successfully *
I'm running the latest ADB on Windows 7, cmd as Administrator.
Upvotes: 31
Views: 58894
Reputation: 574
I found a solution to this problem. I've been looking for one last day same command in the tutorial
https://developer.chrome.com/devtools/docs/contributing-legacy
"C:\Users\%username%\AppData\Local\Google\Chrome SxS\Application\chrome.exe" --remote-debugging-port=9222 --no-first-run --user-data-dir=C:\Users\%username%\chrome-dev-profile http://localhost:11002#http://localhost:8000/front_end/inspector.html
Then I can use localhost: 9222 on the browser.
Right now I would like to comment on the answer to help someone.
Upvotes: 0
Reputation: 1
C:\adb forward tcp:9222 localabstract:chrome_devtools_remote
helped me to find the cause on my system. It was having multiple devices connected. After removing all the devices, and connected only one required device resolved the issue.
Upvotes: 0
Reputation: 28982
You no longer need to fuss with adb, downloads or command lines. With Chrome v41 (canary), I just plugged in the phone, pointed the browser to chrome://inspect, then hit the "inspect" link below my device, and the debug window opened and worked. (Enable USB debugging in the developer options on the phone)
I add that this worked first time, whereas my efforts with Chrome v39 plus the platform tools sdk, adb and the rest, had still not given fruit after 6 hours or so.
Upvotes: 1
Reputation: 101
I had two really dumb problems preventing me from doing this correctly, maybe my experience will help.
1: The "adb forward..." from the most voted-up comment on the YouTube channel explaining how to do it contains a few weird characters (https://www.youtube.com/watch?feature=player_embedded&v=s4zpL4VBbuU). If, like me, you pasted it in cmd without double-checking, the server will start without an error, but the service won't work properly. Make sure you're using this line with your path to adb
adb forward tcp:9222 localabstract:chrome_devtools_remote
2: ESET NOD32 Antivirus has this thing called HIPS (Host-Based Intrusion Prevention System), and it doesn't like you messing around with localhost:####
http://kb.eset.com/esetkb/index?page=content&id=SOLN2950
Maybe your Antivirus software has something similar that can be deactivated?
Hope this helps someone ^_^
Upvotes: 2
Reputation: 15154
Try downloading the Chrome Browser for Android in your phone. And then navigate again in your Desktop to localhost:9222 Android Remote Debugging just works with the mobile Chrome browser. Some users think that the native Android browser is Chrome but it isn't.
Upvotes: 0
Reputation: 113
Have you changed your localhost at all? If so then try 127.0.0.1:9222 instead of localhost:9222.
Upvotes: 4
Reputation: 1039
I found that I had to have USB debugging enabled on Chrome and on my device.
Enable port forwarding on Computer
C:\adb forward tcp:9222 localabstract:chrome_devtools_remote
Go to http://localhost:9222
in Chrome for Computer
Upvotes: 44
Reputation: 423
The remote debugging features requires a small check. The USB debugging features should be rather turned off and only the option for USB Debugging
under chrome (android) settings should be checked.
Also, run the adb forward command twice(the complete command with specific arguments).
Upvotes: 0
Reputation: 41
Can you please provide the version of Chrome on Android you are using? Open "about:version" URL and please provide values of "Google Chrome" an "Application" fields.
And can you please check the following -- after you turn on USB Web debugging (step 2 of the doc), what this sequence of commands outputs to you:
adb root
adb shell cat /proc/net/unix | grep chrome_devtools_remote
(The idea is to check, if the remote debugging socket opens on the device after you turn on USB Web debugging)
Upvotes: 4