1. 查找对应应用 browser 进程号
hdc shell
ps -ef|grep "app bundle name"
2. 在电脑命令行执行命令添加映射
hdc fport tcp:9222 localabstract:webview_devtools_remote_PID #上一步查到的进程ID
2. 电脑端Chrome浏览器中调试
电脑端Chrome浏览器地址栏中输入调试工具地址 chrome://inspect/#devices 并打开该页面。
hdc shell
ps -ef|grep "app bundle name"
hdc fport tcp:9222 localabstract:webview_devtools_remote_PID #上一步查到的进程ID
电脑端Chrome浏览器地址栏中输入调试工具地址 chrome://inspect/#devices 并打开该页面。