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.
Edit: 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.
THE REAL ANSWER: Even though someone already won the bounty, they didn't really answer the question. I went straight to the source (Microsoft) and ended up getting a blog post with some workarounds here. Sweet!
On the Internet Explorer Tools menu, choose Internet Options. In the Internet Options dialog box, click the Advanced tab. On the Advanced tab, look in the Settings box, Browsing category. Clear Disable Script Debugging (Internet Explorer).
Tools > Options > Debugging > Just-In-Time > Uncheck Script Option.
To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.
It's annoying, but you can do this per session:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With