启用Webkit远程调试以启动移动浏览器 [英] Start mobile browsers with webkit remote debugging ON

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

问题描述

Google I/O 2011:Chrome开发工具已重新加载中,保罗·爱尔兰和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.

-

这是个好消息,特别是对于移动Web开发人员而言. 但是我们如何启用它,例如启动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).

我尝试在野生动物园设置(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移动版)或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检查器.打开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日)仅作为开发人员的种子提供:

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/chrome/mobile/docs/debugging 我还没有找到在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天全站免登陆