在windows下调试safari的网页

ios_webkit_debug_proxy 介绍

ios_webkit_debug_proxy 是一个从usb到websocket的代理。允许开发者实时的向手机端safari和UIWebViews发送命令。

安装scoop

在powershell中运行Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

使用scoop安装ios-webkit-debug-proxy

scoop bucket add extras
scoop install ios-webkit-debug-proxy

安装remotedebug-ios-webkit-adapter

  1. 在使用适配器软件时,你需要安装最新版本的iTunes,因为这个软件需要使用使用某些与IOS通信的驱动。
  2. 使用npm安装软件 npm install remotedebug-ios-webkit-adapter -g
  3. 在iPhone中启用远程调试。打开iOS 设置 => Safari 设置 => 打开 "Web Inspector"
  4. 使iPhone信任电脑
  5. 运行命令 remotedebug_ios_webkit_adapter --port=9000
    BTW: ios-webkit-debug-proxy will be run automatically for you, no need to start it separately.
  6. 使用chrome打开 chrome://inspect,可以在页面中添加9000端口

ios_webkit_debug_proxy
remotedebug-ios-webkit-adapter

猜你喜欢

转载自www.cnblogs.com/shubin/p/13166789.html