Google Chrome for Android Remote Debugging - “localhost:9222” Not Available

前端 未结 9 1031
难免孤独
难免孤独 2021-01-30 05:16

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 web

相关标签:
9条回答
  • 2021-01-30 06:16

    I found that I had to have USB debugging enabled on Chrome and on my device.

    1. Chrome for Mobile - Settings > Developer Tools > [x] Enable USB Web debugging
    2. Device - Settings > Developer options > [x] USB debugging
    3. Connect Device to Computer
    4. Enable port forwarding on Computer

      C:\adb forward tcp:9222 localabstract:chrome_devtools_remote

    5. Go to http://localhost:9222 in Chrome for Computer

    0 讨论(0)
  • 2021-01-30 06:18

    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)

    0 讨论(0)
  • 2021-01-30 06:22

    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.

    0 讨论(0)
提交回复
热议问题