We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
数据线连接,Mac Safari 的开发菜单下会看到 iPhone 上 Safari 当前打开的页面
移动端 Chrome + PC Chrome
都在 Chrome DevTools 里进行。
安装 remotedebug_ios_webkit_adapter
支持:
brew update brew unlink libimobiledevice ios-webkit-debug-proxy usbmuxd brew uninstall --force libimobiledevice ios-webkit-debug-proxy usbmuxd brew install --HEAD libimobiledevice brew install --HEAD usbmuxd brew install --HEAD ios-webkit-debug-proxy npm install remotedebug-ios-webkit-adapter -g # 启动 remotedebug_ios_webkit_adapter --port=9000 # 访问 chrome://inspect/#devices
设置里启用开发者模式(如果是要调试 webview,选择要调试的 APP),USB 连线,允许调试,chrome 访问 chrome://inspect/#devices
chrome://inspect/#devices
Charles
愧对开发者的操作(破解): https://www.zzzmode.com/mytools/charles/
tips: Mac: CMD+Shift+G,输入 /Applications/Charles.app/Contents/Java
Mac: CMD+Shift+G,输入 /Applications/Charles.app/Contents/Java
配置 + 使用:
右键某个请求,选择 Map Local...,Map To 里选择本地文件,刷新页面,该请会返回本地的映射文件。
Map Local...
对于线上代码,比如要加一些调试信息,可以右键某个请求,选择 Save Response...(注意扩展名),存储到本地,然后修改保存的文件,增加调试信息,设置 Map Local,然后刷新页面。
Save Response...
Map Local
The text was updated successfully, but these errors were encountered:
No branches or pull requests
debug
浏览器调试
Safari
数据线连接,Mac Safari 的开发菜单下会看到 iPhone 上 Safari 当前打开的页面
Chrome
移动端 Chrome + PC Chrome
通用调试
iOS
都在 Chrome DevTools 里进行。
安装 remotedebug_ios_webkit_adapter
支持:
Android
设置里启用开发者模式(如果是要调试 webview,选择要调试的 APP),USB 连线,允许调试,chrome 访问
chrome://inspect/#devices
通用抓包
Charles
愧对开发者的操作(破解): https://www.zzzmode.com/mytools/charles/
tips:
Mac: CMD+Shift+G,输入 /Applications/Charles.app/Contents/Java
配置 + 使用:
利用 Charles 调试线上代码(线上哦)
右键某个请求,选择
Map Local...
,Map To 里选择本地文件,刷新页面,该请会返回本地的映射文件。对于线上代码,比如要加一些调试信息,可以右键某个请求,选择
Save Response...
(注意扩展名),存储到本地,然后修改保存的文件,增加调试信息,设置Map Local
,然后刷新页面。其它工具
参考
The text was updated successfully, but these errors were encountered: