在 webkit 远程调试开启的情况下启动移动浏览器 [英] Start mobile browsers with webkit remote debugging ON

查看:15
本文介绍了在 webkit 远程调试开启的情况下启动移动浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google I/O 2011:Chrome 开发工具重新加载上,Paul Irish和 Pavel Feldman 引入了新的 远程调试 功能 - 正在通过包含在 webkit 中.

At Google I/O 2011: Chrome Dev Tools Reloaded, Paul Irish and Pavel Feldman introduced new remote debugging feature — which was in passing included into webkit.

--

这是个好消息,尤其是对移动网络开发者而言.但是我们如何启用它,例如启动 IOS 模拟器,或者只是在 iPhone 上运行 Safari Mobile?(对于 chrome,这通常是在启动时使用 --remote-debugging-port=9222 选项完成的).

This is great news, particularly for mobile web-developers. But how do we enable it, for example launching IOS simulator, or just running Safari Mobile on an iPhone? (for chrome this is traditionally done with --remote-debugging-port=9222 option while launching it).

我尝试在 safari 设置中启用开发者模式 (Settings > Safari > Developer > Debug Console: ON) 但没有成功...

I tried enabling developer mode in safari settings (Settings > Safari > Developer > Debug Console: ON) but without success...

我不了解这里的 android,但是有谁知道 Apple(Safari Mobile)或 Google(Android 的浏览器)什么时候会包含这个新功能,以便我们可以在移动开发中享受远程调试?

I don't know about android here, but does anyone know when Apple (Safari Mobile) or Google (android's browser) will include this new feature so we can enjoy remote-debugging in mobile development?

谢谢.

参考:http:///paulirish.com/2011/a-re-introduction-to-the-chrome-developer-tools/#comment-63113

推荐答案

iOS 6 上的 Safari在 iOS6 中,您现在可以从 Safari 6(仅限 OS X)进行远程调试.在设备上,打开设置 > Safari > 高级 > 启用 Web Inspector.打开 Safari 首选项,高级,选中在菜单栏中显示开发菜单".使用 USB 数据线连接您的 iPhone/iPad.现在,在开发"菜单栏下,您应该会看到一个设备子菜单,其中包含您在设备上的 Safari 中打开的选项卡.

Safari on iOS 6 In iOS6 you can now remote debug from Safari 6 (only OS X). On the device, open Settings > Safari > Advanced > Enable Web Inspector. Open Safari Preferences, Advanced, check "Show Develop menu in menu bar". Connect your iPhone/iPad with a USB cable. Now under the Develop menu bar you should get a submenu for you device with the tabs you have open in Safari on your device.

iOS 7 上的 Safari除了上述要求外,您还需要 Safari 6.1,目前(2013 年 10 月 8 日)仅作为种子提供给开发人员:https://developer.apple.com/downloads/index.action?name=Safari%206.1

Safari on iOS 7 In addition to requirements above you will need Safari 6.1, which at the moment (Oct. 8th 2013) is only available as a seed for developers: https://developer.apple.com/downloads/index.action?name=Safari%206.1

Android 4 上的 Chrome在Android上它有点复杂.Android 版 Chrome 上的远程调试说明:https://developers.google.com/铬/移动/文档/调试我还没有找到在 Android 默认浏览器 (v4.04) 中启用远程调试的方法.

Chrome on Android 4 It's a bit more complicated on Android. Instructions for remote debugging on Chrome for Android here: https://developers.google.com/chrome/mobile/docs/debugging I haven't found a way to enable remote debugging in the Android default browser (v4.04).

这篇关于在 webkit 远程调试开启的情况下启动移动浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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