远程调试Chrome for iOS [英] Remote debugging Chrome for iOS

查看:443
本文介绍了远程调试Chrome for iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在iPad版Chrome上调试错误.我该怎么办?

I'm trying to debug an error on Chrome for iPad. How can I do that?

其他信息:

我知道如何调试iOS的Safari.我现在暂时没有Mac.

I know how to debug Safari for iOS. I just don't have a Mac at the moment.

  • 我是否确实需要MacOS X上的Safari才能远程调试iOS的Chrome?

  • Is it true that I need Safari on MacOS X to remote debug Chrome for iOS?

Desktop Chrome允许任何操作吗?

Does Desktop Chrome allow anything?

iOS专用的Chrome浏览器是否只是Webview应用程序?

Is Chrome for iOS just a webview application?

推荐答案

您目前无法直接在iOS上直接调试Chrome.它使用的uiWebView可能与Mobile Safari略有不同

You cannot directly remote debug Chrome on iOS currently. It uses a uiWebView that may act subtly different than Mobile Safari

您有一些选择.

选项1:使用Safari的检查器远程调试Mobile Safari. Safari,这绝对是最好的方式.实际上,通过iOS模拟器进行操作甚至更加容易.

Option 1: Remote-debug Mobile Safari using Safari's inspector. If your issue reproduces in Mobile Safari, this is definitely the best way to go. In fact, going through the iOS simulator is even easier.

选项2:使用Weinre来获得精简的调试体验.功能,但有时就足够了.

Option 2: Use Weinre for a slimmed down debugging experience. Weinre doesn't have much features but sometimes it's good enough.

选项3:远程调试功能相同的适当uiWebView.

这是执行此操作的最佳方法.您需要安装XCode .

Here's the best way to do this. You'll need to install XCode.

  1. 转到 github.com/paulirish/iOS-WebView-App 和下载Zip"或克隆.
  2. 打开XCode,打开现有项目,然后选择刚刚下载的项目.
  3. 打开WebViewAppDelegate.m并将urlString更改为要测试的URL.
  4. 在iOS模拟器中运行该应用.
  5. 打开Safari,打开 Develop 菜单,选择 iOS Simulator 并选择您的Web视图.
  6. Safari检查器现在将检查您的uiWebView.
  1. Go to github.com/paulirish/iOS-WebView-App and "Download Zip" or clone.
  2. Open XCode, open existing project, and choose the project you just downloaded.
  3. Open WebViewAppDelegate.m and change the urlString to be the URL you want to test.
  4. Run the app in the iOS Simulator.
  5. Open Safari, Open the Develop Menu, Choose iOS Simulator and select your webview.
  6. Safari Inspector will now be inspecting your uiWebView.

这篇关于远程调试Chrome for iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆