Disable script debbuging in Visual Stuio 2008 and IE8

 

You may have noticed the huge tree of constantly appearing script documents in Visual Studio 2008. Script debugging is a great feature of Visual Studio, but it can as well slow down dramatically project execution. There are several ways you can turn that off.

The first method requires that you have Silverlight 2 Tools for Visual Studio 2008 SP1. You can get them here:

http://www.microsoft.com/downloads/details.aspx?familyid=C22D6A7B-546F-4407-8EF6-D60C8EE221ED&displaylang=en

In project properties go to Start Options and click ‘Silverlight’ at the bottom of the screen. The debugger can’t simultaneously debug Silverlight and Scripts and this will shut down script debugging. This method would allow you to turn on and off debugging of scripts.

The other method:

* Start command prompt (start->run, cmd.exe). On a 64 bit Windows run (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 use Visual Web Developer Express, change ‘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 would like to turn on script debugging 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

Ако искате да изключите само генерирането на ‘anonymous code’ нодове, вместо да изключите изцяло дебъгването на скриптове:
(трябва да имате инсталиран Visual Studio 2008 SP1)

If you just want to disable the ‘anonymous code’ nodes generation (you’ll need Visual Studio 2008 SP1):

* reg add HKCU\Software\Microsoft\VisualStudio\9.0\Debugger /v HideAnonymousScriptCodeNodes /t REG_DWORD /d 1 /f

 

Advertisement
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s