Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Do I Shut Off Visual Studio 2008 Script Debugging

If I launch an ASP.NET project, using Visual Studio 2008 and Internet Explorer, Visual Studio starts script debugging. I get a Script Documents node with a child node of Windows Internet Explorer and Default.aspx with a bazillion anonymous code nodes underneath.

I'm having difficulty shutting this off, other than telling VS to launch the app in FireFox. I've searched around and found the solution to shut off script debugging in Internet Explorer, but this changed nothing for me.

Has any one found a solution?

like image 265
Joshua Belden Avatar asked May 06 '09 16:05

Joshua Belden


People also ask

How do I disable debugging in Visual Studio 2008?

C# and VB.net Projects With your project open, select the “Project” tab, then choose “appname Properties…“. Select “Debug” on the left pane. Check the “Enable native code debugging” box to enable it. Uncheck it to disable it.

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 disable debugging in Visual Studio?

You can configure Just-In-Time debugging from the Visual Studio Tools > Options (or Debug > Options) dialog box. To enable or disable Just-In-Time debugging: On the Tools or Debug menu, select Options > Debugging > Just-In-Time.

What happens if I disable script debugging?

When you select 'Disable script debugging" you're choosing (as do nearly all users) to not try to debug (fix) scripting errors on the webpage you're visiting. Many of these script errors will be minor and will not affect the display or functionality of the webpage.


3 Answers

Did you check both boxes in IE to disable script debugging:

Disable Script Debugging (Internet Explorer)

Disable Script Debugging (Other)

Also, make sure that after you made the change you closed all instances of IE. Then try debugging with VS again.

Update: just tried it myself and this solution does not work.

Update2: still does not work after a reboot

Finally found a possible solution from here. Apparently this is a known issue and the workaround is to install the silverlight tools and tell the web project to debug silverlight (the debugger apparently cannot debug both silverlight and scripts).

Confirmed: The Silverlight tools solution does indeed work.

like image 40
Jimmie R. Houts Avatar answered Sep 24 '22 12:09

Jimmie R. Houts


Disable all script debugging:

  • Open a new command prompt (start->run, cmd.exe). If you are on a 64-bit computer this needs to be a 32-bit prompt (start->run, c:\windows\syswow64\cmd.exe)
  • reg add HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f

If you are using Visual Web Developer Express, replace 'VisualStudio' with 'VWDExpress':

  • reg add HKLM\SOFTWARE\Microsoft\VWDExpress\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f

If you want to restore your computer so that you can debug scripts again:

  • reg add HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {170EC3FC-4E80-40AB-A85A-55900C7C70DE} /f
like image 168
Daniel Avatar answered Sep 21 '22 12:09

Daniel


Because this is a known problem, and a possible fix is to install Silverlight Tools, I've decided the best solution is to ditch Internet Explorer 8 and just launch my sites in FireFox.

like image 20
Joshua Belden Avatar answered Sep 21 '22 12:09

Joshua Belden