有什么方法可以在任何IOS设备中调试Chrome [英] Is there any way to debug chrome in any IOS device

查看:329
本文介绍了有什么方法可以在任何IOS设备中调试Chrome的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以在IOS设备上调试Chrome浏览器?

Is there any way to debug chrome browser on IOS device?

如果没有办法,我该如何解决ios上chrome中的bug?

If there is no way, how i can approach to bug in chrome on ios?

在网上搜索,找不到足够的答案.

Searched the web and didn't find sufficient answer.

推荐答案

旧答案(2016年7月):

由于发布的WKWebView应用的限制,您无法直接调试Chrome for iOS,但是其他SO线程中已经讨论了一些选项:

You can't directly debug Chrome for iOS due to restrictions on the published WKWebView apps, but there are a few options already discussed in other SO threads:

  1. 如果您也可以在Safari中重现该问题,请使用

  1. If you can reproduce the issue in Safari as well, then use Remote Debugging with Safari Web Inspector. This would be the easiest approach.

WeInRe 允许使用简单的调试工具客户端-服务器模型.它的功能不完全,但是可能足以解决您的问题.请参阅此处的说明.

WeInRe allows some simple debugging, using a simple client-server model. It's not fully featured, but it may well be enough for your problem. See instructions on set up here.

您可以尝试创建一个简单的WKWebView浏览器应用程序(某些说明

You could try and create a simple WKWebView browser app (some instructions here), or look for an existing one on GitHub. Since Chrome uses the same rendering engine, you could debug using that, as it will be close to what Chrome produces.

为WebKit打开了一个错误":允许Web Inspector用于以下版本的发布WKWebView .如果并且当我们获得WKWebView的API时,iOS的Chrome浏览器将是可调试的.

There's a "bug" opened up for WebKit: Allow Web Inspector usage for release builds of WKWebView. If and when we get an API to WKWebView, Chrome for iOS would be debuggable.

2018年1月更新:

自2016年以来,我已经做了一些改进工作.

Since my answer back in 2016, some work has been done to improve things.

最近有一个名为 RemoteDebug iOS WebKit适配器的项目, 由一些Microsoft团队提供.它是一个适配器,可以处理Webkit远程调试协议和Chrome调试协议之间的API差异,这使您可以在任何支持该协议的应用程序中调试iOS WebViews-Chrome DevTools,VS Code等.

There is a recent project called RemoteDebug iOS WebKit Adapter, by some of the Microsoft team. It's an adapter that handles the API differences between Webkit Remote Debugging Protocol and Chrome Debugging Protocol, and this allows you to debug iOS WebViews in any app that supports the protocol - Chrome DevTools, VS Code etc.

在回购中查看入门指南,该指南非常详细

Check out the getting started guide in the repo, which is quite detailed.

如果您有兴趣,可以阅读一下背景和体系结构 此处.

If you are interesting, you can read up on the background and architecture here.

这篇关于有什么方法可以在任何IOS设备中调试Chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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