Contents
  1. 1. 安卓
  2. 2. ios
  3. 3. 其他

比较好用的在手机上调试js的方法。
电脑端需要装chrome浏览器。

安卓

装个uc开发版或者是chrome浏览器。

http://www.uc.cn/download/u4-developer_NEW.pdf
手机连上电脑,启用开发者调试。
电脑上打开 chrome://inspect ,找到自己的设备。

ios

安装ios-webkit-debug-proxy
brew install ios-webkit-debug-proxy
执行ios_webkit_debug_proxy -f chrome-devtools://devtools/bundled/inspector.html
然后用电脑的chrome打开 localhost:9221找到你的设备。

如果发现

1
2
3
Listing devices on :9221
Could not connect to lockdownd. Exiting.: Permission denied
Unable to attach 6ae32d7567a56d29ab18cacb855551134e041b52 inspector

可以尝试先运行
brew upgrade libimobiledevice --HEAD

其他

chrome可以截全屏的图。

  • 打开console
  • Ctrl + Shift + P 调出窗口
  • 输入full
  • 截图
Contents
  1. 1. 安卓
  2. 2. ios
  3. 3. 其他