如何在移动设备上调试网站? [英] How to debug web sites on mobile devices?
问题描述
人们如何在移动设备上调试网站?
How do people debug websites on mobile devices?
我希望能够像在桌面浏览器中使用 Inspector 一样操作 HTML 和 CSS,并调试 JavaScript.
I'd like to be able to manipulate the HTML and CSS similar to using the Inspector in a desktop browser, and debug JavaScript.
推荐答案
这是正确答案,不知道为什么 Blaine 只把它留作评论!
This is the correct answer, not sure why Blaine only left it as a comment!
iOS 6 远程调试可用:https://stackoverflow.com/a/12762449/72428
As of iOS 6 Remote Debugging is available: https://stackoverflow.com/a/12762449/72428
在 OS X 上,您可以在 iOS 模拟器和 iOS 6 设备上使用 Safari 网络检查器.
On OS X you can use the Safari web inspector on the iOS Simulator AND iOS 6 devices.
- 首先在桌面上的 Safari 中启用开发者菜单.
接下来,在您的 iOS 设备(或模拟器)上启用远程调试.
- First enable the Developer menu in Safari on your Desktop.
Next, enable remote debugging on your iOS device (or simulator).
设置 > Safari > 高级 > Web Inspector (ON)
Settings > Safari > Advanced > Web Inspector (ON)
返回计算机上的 Safari,点击开发者菜单,然后选择您的设备(例如 iPhone 模拟器、iPhone)
Go back to Safari on your computer, click the Developer menu, and select your device (e.g. iPhone Simulator, iPhone)
这篇关于如何在移动设备上调试网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!