豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 204a23a

Browse files
committed
docs: add experimental chrome on android guide
1 parent ab2340f commit 204a23a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

docs/debugging-android.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Experimental: Debugging Chrome on Android
2+
3+
This is an experimental feature as Puppeteer does not officially support Chrome on Android as a target.
4+
5+
6+
The workflow below works for most users. See [Troubleshooting: DevTools is not detecting the Android device for more help](https://developer.chrome.com/docs/devtools/remote-debugging#troubleshooting) for more help.
7+
8+
1. Open the Developer Options screen on your Android. See [Configure on-device developer Options](https://developer.android.com/studio/debug/dev-options.html).
9+
2. Select Enable USB Debugging.
10+
3. Connect your Android device directly to your development machine using a USB cable.
11+
4. On your development machine setup port forwarding from your development machine to your android device:
12+
```shell
13+
adb forward tcp:9222 localabstract:chrome_devtools_remote
14+
```
15+
5. Configure your MCP server to connect to the Chrome
16+
```json
17+
"chrome-devtools": {
18+
"command": "npx",
19+
"args": [
20+
"chrome-devtools-mcp@latest",
21+
"--wsEndpoint=ws://127.0.0.1:9222/devtools/browser/"
22+
],
23+
"trust": true
24+
}
25+
```
26+
6. Test your setup by running the following prompt in your coding agent:
27+
```none
28+
Check the performance of developers.chrome.com
29+
```
30+
31+
The Chrome DevTools MCP server should now control Chrome on your Android device.
32+
33+
34+
35+
36+
37+

0 commit comments

Comments
 (0)