iOS 设备上的远程 console.log() [英] Remote console.log() on iOS devices

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

问题描述

我正在开发一个涉及 touchEvent 的网络应用程序.如果我可以在我的 Mac 上远程查看控制台,调试这些会容易得多.

I am developing a web app that involves touchEvent. It will be much more easier to debug those if I can view the console remotely on my Mac.

我可以让 iOS 设备上的 Mobile Safari 将控制台日志存储在系统中的某个位置吗?我已经越狱了我的 iPad.

Can I make my Mobile Safari on the iOS device store the console log somewhere in the system. I have already jailbreak my iPad.

谢谢!

推荐答案

  1. 将iphone插入电脑
  2. 设置 >野生动物园 >高级 >网络检查器(打开)
  3. 在您的计算机上打开 safari
  4. 在 iPhone 上的 Safari 浏览器中运行您的网络应用
  5. 在 safari 中的计算机上,转到开发"->你的 iphone 名称"然后在Safari"下找到正确的选项卡打开 Web Inspector.

执行这些步骤可使桌面上的 safari 调试工具反映并响应连接的 iphone.

doing these steps enables the safari debug tools on your desktop to reflect and respond to the connected iphone.

希望有所帮助.

这篇关于iOS 设备上的远程 console.log()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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