javascript Internet Explorer 10 Metro 中 F12 开发人员工具的替代品?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13508449/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Alternatives to F12 Developer tools in Internet Explorer 10 Metro?
提问by jsalonen
I'm testing our JavaScript-heavy web application on Windows 8. For what it seems, IE10 on desktop works just fine. However, the Metro UI version for IE10 seems to break our application.
我正在 Windows 8 上测试我们的 JavaScript-heavy web 应用程序。看起来,桌面上的 IE10 工作得很好。然而,IE10 的 Metro UI 版本似乎破坏了我们的应用程序。
My question is this: is there a way to debug web applications on IE10 Metro?
我的问题是:有没有办法在 IE10 Metro 上调试 Web 应用程序?
For what I know, F12 developer tools are not available.
据我所知,F12 开发人员工具不可用。
采纳答案by Martin Beeby
The rendering/ JS Engine in IE10 Desktop and IE10 should be identical. Does your app use any Add-ins (for things like cut and paste support?) As far as I am aware taking IE10 Desktop and switching off plugin support should be the same as running your app in "non desktop IE10"
IE10 Desktop 和 IE10 中的渲染/JS 引擎应该是相同的。您的应用程序是否使用任何加载项(例如剪切和粘贴支持?)据我所知,使用 IE10 桌面并关闭插件支持应该与在“非桌面 IE10”中运行您的应用程序相同
As for debugging, you can't get tools to run in IE10 desktop mode. I often use fiddler to inspect the traffic, but you will need to enable loopback on the machine to get this running for Metro IE.
至于调试,你无法获得在IE10桌面模式下运行的工具。我经常使用 fiddler 来检查流量,但是您需要在机器上启用环回才能使其在 Metro IE 上运行。
You could add firebug lite to get basic dev tools.
您可以添加 firebug lite 来获取基本的开发工具。
回答by undefined
Here's microsoft's recommendation for debugging pages as if they're being run in Metro IE:
这是微软关于调试页面的建议,就像它们在 Metro IE 中运行一样:
F12 developer tools is only accessible while browsing a website in Internet Explorer for the desktop. If you're browsing in the Internet Explorer in the Windows UI, you can debug the website by switching to the desktop view (from Page tools, select View on the desktop) and opening F12 tools from there. To emulate Internet Explorer in the Windows UI on the desktop:
- Enable ActiveX Filtering (from the Tools menu, select ActiveX Filtering)
- Enter Full Screen mode (F11)
- Enable Enhanced Protected Mode (listed under Security on the Advanced tab in Internet Options)
F12 开发人员工具只能在桌面版 Internet Explorer 中浏览网站时访问。如果您在 Windows UI 中的 Internet Explorer 中浏览,您可以通过切换到桌面视图(从页面工具,选择桌面上的查看)并从那里打开 F12 工具来调试网站。要在桌面上的 Windows UI 中模拟 Internet Explorer:
- 启用 ActiveX 过滤(从工具菜单中,选择 ActiveX 过滤)
- 进入全屏模式 (F11)
- 启用增强保护模式(在 Internet 选项中高级选项卡上的安全下列出)
Found at http://msdn.microsoft.com/en-us/library/ie/hh771832%28v=vs.85%29.aspx
位于http://msdn.microsoft.com/en-us/library/ie/hh771832%28v=vs.85%29.aspx