IE8 and VS2008: How do I disable script debugging?

后端 未结 3 1690
误落风尘
误落风尘 2021-02-15 00:35

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 sc

3条回答
  •  长情又很酷
    2021-02-15 00:55

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

    1. Start debugging your website, F5
    2. In the top menu, go to Debug;Windows;Processes
    3. In my Processes window, there are two processes, one for IExplore:script and one for WebDev.WebServer.EXE:Managed. Right-click the IExplore:script lineitem and select Detach Process.

    UPDATE

    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.

    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.

提交回复
热议问题