在windows下調試safari的網頁

ios_webkit_debug_proxy 介紹

ios_webkit_debug_proxy 是一個從usb到websocket的代理。容許開發者實時的向手機端safari和UIWebViews發送命令。ios

安裝scoop

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

使用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-adaptergithub

相關文章
相關標籤/搜索