在Page Inspector中启用javascript调试器 [英] Enable the javascript debugger in the Page Inspector
问题描述
Visual Studio 2012附带了非常好的Page Inspector。我喜欢!问题但是,我还没有找到(如果?)我可以打开JavaScript调试。有人能指出我正确的方向吗?
Visual Studio 2012 comes with the very nice Page Inspector. I like it! Problem though, I haven't found how (if?) I can turn on JavaScript debugging. Could someone point me in the right direction?
推荐答案
-
在IE9中(只有一次) ):工具> Internet选项>高级选项卡>在浏览类别>清除禁用脚本调试复选框(两者)>重新启动IE。
In IE9 (only one time): Tools > Internet Options > Advanced tab > In Browsing category > Clear "Disable script debugging" check boxes (both) > restart IE.
在VS 2012中:运行页面检查器(当javascript错误框打开时,单击否!)
In VS 2012: Run the Page Inspector ( when javascript error box opens, click No ! )
从VS菜单中选择:DEBUG>附加到进程...
Choose from VS menu: DEBUG > Attach to process...
选择WebBrowserServer.exe并单击附加
Select "WebBrowserServer.exe" and click Attach
在页面检查器窗口中单击刷新图标。
In Page Inspector window click the Refresh icon.
调试效果很好,但这是一个条件。不要在代码中插入任何断点(或在之前清除它们 - DEBUG>删除所有断点)。可能会导致很多问题 - 从悬挂和冻结到完全崩溃你的VS.
Debugging works pretty well, but it's one condition. Don't insert any breakpoints in your code (or clear them before - DEBUG > Delete All Breakpoints). There can cause a lot of problems - from hanging and frozing to entirely crashing your VS.
这篇关于在Page Inspector中启用javascript调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!