IE8和VS2008:如何禁用脚本调试? [英] IE8 and VS2008: How do I disable script debugging?

查看:365
本文介绍了IE8和VS2008:如何禁用脚本调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IE8已经出局,显然每当你以调试模式启动项目时,它都会自动打开脚本(JavaScript)调试。有谁知道如何扭转这个?我搜索了IE8 / VS2008设置,但没有看到任何内容。

IE8 is out and apparently it automatically turns on script (JavaScript) debugging whenever you launch your project in debugging mode. Does anyone know how to turn this ofF? I scoured the IE8/VS2008 settings but didn't see anything.

编辑:您不能只进入Internet选项并禁用调试: http:// blogs.msdn.com/webdevtools/archive/2008/03/05/jscript-debugging-made-easy-with-ie8.aspx 这样你可以关闭调试以进行常规的网页浏览,但是会自动进行调试在调试时加油。我希望脚本调试好。

You can't just go into Internet Options and disable debugging: http://blogs.msdn.com/webdevtools/archive/2008/03/05/jscript-debugging-made-easy-with-ie8.aspx This is so you can leave debugging off for regular web browsing, but have it automatically come on when debugging. I want script debugging off for good.

真正的答案: 即使有人已经赢得赏金,他们也是没有真正回答这个问题。我直接找到了源代码(微软)并最终获得了一篇博文,其中包含一些解决方法这里。甜蜜!

推荐答案

这很烦人,但你可以在每个会话中这样做:

It's annoying, but you can do this per session:


  1. 开始调试您的网站,F5

  2. 在顶部菜单中,转到Debug; Windows; Processes

  3. 在我的进程窗口中,有两个进程,一个用于IExplore:脚本,另一个用于WebDev.WebServer.EXE:Managed。右键单击IExplore:脚本lineitem并选择Detach Process。

更新

Nicholas提供的链接解释说安装 Silverlight SDK 然后为您的Web项目启用Silverlight调试(属性页中Web选项卡底部的复选框)将阻止脚本调试器附加到IE进程。基本上,您无法同时调试两者,并且Silverlight选项优先。该链接还提供了几个注册表调整,以部分或完全禁用脚本调试。

The link that Nicholas provided explains that installing the Silverlight SDK and then enabling Silverlight debugging for your web project (a checkbox on the bottom of the "Web" tab in the property pages) will prevent the script debugger from attaching to the IE process. Basically, you can't debug both at the same time, and the Silverlight option takes precedence. The link also provides several registry tweaks to partially or fully disable script debugging.

我发布此答案后开始使用Silverlight解决方法,所以我回来更新当我看到OP找到相同的解决方案时。由于这个答案被接受并获得了赏金,但没有真正回答这个问题,我希望这个更新能给出更多的答案。

I started using the Silverlight workaround technique after I posted this answer, so I was coming back to update it when I saw that the OP found the same solution. Since this answer was accepted and awarded a bounty but didn't really answer the question, I hope this update gives the answer a tiny bit more merit.

这篇关于IE8和VS2008:如何禁用脚本调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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