如何修复safari 6 web检查器,使其适用于iOS设备或模拟器? [英] How do I fix the safari 6 web inspector so that it works with iOS devices or simulators?
问题描述
每当我尝试将safari web检查器连接到在前台运行移动Safari的模拟器或设备时,我试图检查的站点从未在检查器中完全加载。 DOM永远不会填满dom树视图;我必须在资源视图中折叠和展开网页才能看到脚本,图像,框架等,但是没有一个应该显示DOM的项目实际上都是这样做的。触摸模式通过在iphone / ipad上点击它来选择特定的dom元素不起作用。
Whenever I try to connect the safari web inspector to a simulator or device running mobile safari in the foreground, the site that I try to inspect never fully loads in the inspector. The DOM never fills out in the dom tree view; i have to collapse and expand the webpage in the resource view to be able to see scripts, images, frames and the like but none of the items that should show a DOM actually do. Touch mode to select a specific dom element by tapping on it on the iphone/ipad doesn't work either as a result of this.
我已经正确设置了相关的ios设置和mac safari设置,以便Safari上的safari可以看到每个设备,并正确连接到特定的网站/ webview,但连接似乎失败了。
I've correctly set the relevant ios settings and mac safari settings so that safari on mac can see each device and connect to specific websites/webviews properly but the connection seems to fail somehow.
我已经只有通过清除cookies和缓存通过ios设置进行safari才能使其工作,但即使如此,它只能成功地连接并显示出我的一部分时间。有没有人遇到这个?可能会出什么问题?有办法解决吗?是否可以使用不同的网页检查器来调试iOS上的网站(如webkit每晚一个),如果是这样,那么如何?
I've had only moderate luck in getting it to work by clearing cookies and cache via the ios settings for safari, but even then it only successfully connects and shows me a dom part of the time. Has anyone else run into this? What could be going wrong? Is there a way to fix it? Is it possible to use a different web inspector to debug sites on iOS (like the webkit nightly one) and if so, how?
这是在我的10.7和10.8机器和各种不同的ipad。这可能是我们的网站的一个问题,但我不知道如何缩小究竟什么。
This happens on both my 10.7 and 10.8 machines and on various different ipads. It might be an issue with our site specifically but I don't know how to narrow down what exactly.
推荐答案
我还有这个问题,但是为我解决的是当我在私人模式下运行Safari。
Dunno为什么,可能是与chant相关的。不是一个很好的解决方案,只要问题仍然存在,但会做。
I still have this issue but what has solved it for me is when I run Safari in Private Mode. Dunno why, might be chaching-related. Not a nice solution but will do as long as the problem persist.
这些版本是:
- iOS模拟器版本7.0(463.9.4)
- Safari版本6.0.5(8536.30.1)
These are the versions: - iOS Simulator Version 7.0 (463.9.4) - Safari Version 6.0.5 (8536.30.1)
这篇关于如何修复safari 6 web检查器,使其适用于iOS设备或模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!