Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE8 and VS2008: How do I disable script debugging?

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!

like image 582
Nicholas Head Avatar asked Mar 19 '09 21:03

Nicholas Head


People also ask

How do I disable script debugging?

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).

How do I stop chrome script debugging in Visual Studio is enabled?

Tools > Options > Debugging > Just-In-Time > Uncheck Script Option.

How do I turn off debugging in Visual Studio?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.


1 Answers

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.

like image 66
Cᴏʀʏ Avatar answered Jan 01 '23 19:01

Cᴏʀʏ