iOS远程调试 [英] iOS Remote Debugging

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

问题描述



更新:随着iOS 6的发布,远程系统现在可以使用 Safari 完成调试。

解决方案

更新: 不是最佳答案,请按照 gregers '的建议。

新答案:



使用 Weinre

旧的答案:您现在可以使用Safari进行远程调试。但它需要iOS 6。



以下是 http://html5-mobile.de/blog/ios6-remote-debugging-web-inspector


  1. 通过USB连接您的iDevice与您的Mac

  2. 在Mac上打开Safari并激活开发工具
  3. 在您的iDevice :进入设置> safari>高级并激活网络检查器

  4. 使用您的iDevice访问任何网站

  5. 在您的Mac上:打开开发者菜单并从您的iDevice(位于顶部Safari菜单中)选择网站

正如Simons回答需要关闭隐私浏览以进行远程调试。



设置> Safari>隐私浏览>关闭


With the recent release of Chrome for iOS, I was wondering how do you enable remote debugging for Chrome iOS?

Update: With the release of iOS 6, remote debugging can now be done with Safari.

解决方案

Update:

This is not the best answer anymore, please follow gregers' advice.

New answer:

Use Weinre.

Old answer:

You can now use Safari for remote debugging. But it requires iOS 6.

Here is a quick translation of http://html5-mobile.de/blog/ios6-remote-debugging-web-inspector

  1. Connect your iDevice via USB with your Mac
  2. Open Safari on your Mac and activate the dev tools
  3. On your iDevice: go to settings > safari > advanced and activate the web inspector
  4. Go to any website with your iDevice
  5. On your Mac: Open the developer menu and chose the site from your iDevice (its at the top Safari Menu)

As pointed out by Simons answer one need to turn off private browsing to make remote debugging work.

Settings > Safari > Private Browsing > OFF

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

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