ios 设备设置
- 设置—>Safari浏览器—>高级—>将网页检查器打开
- 手机打开safari浏览器,浏览网页
windows电脑调试
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
iwr -useb get.scoop.sh | iex
iwr -useb https://gitee.com/glsnames/scoop-installer/raw/master/bin/install.ps1 | iex
scoop config SCOOP_REPO 'https://gitee.com/glsnames/Scoop-Core'
scoop update
Set-ExecutionPolicy RemoteSigned -scope CurrentUse
scoop bucket add extras
scoop install ios-webkit-debug-proxy
npm install remotedebug-ios-webkit-adapter -g
remotedebug_ios_webkit_adapter --port=9000
remotedebug-ios-webkit-adapter is listening on port 9000
- 打开 Chrome 浏览器,进入 chrome://inspect/#devices 页面,在 Discover network targets 选项添加 localhost:9000 配置。刷新页面,这时页面中会出现 ‘Remote Target’ 列表,该列表展示了 iPhone 中打开的页面,点击 inspect,即可进行调试
mac电脑调试
- MAC Safari→偏好设置→高级→打开”在菜单栏中显示“开发”菜单
- 连接iphone,信任电脑
- 打开safari,调试对应网页
|