Annoying VS2008 and IE8 script debugging glitch

by dotnetpete 16. September 2009 09:36

I came across a very annoying problem with VS2008 and IE8 where you can't turn off script debugging.

The workaround is documented here where you download the silverlight tools for VS2008 SP1 and turn on silverlight debugging. Because the debugger can't debug javascript and silverlight at the same time, javascript debugging is effectively turned off. Interestingly, to enable silverlight debugging I had a slight variation to the steps below.

Right click on the project -> properties, go to the web tab, and check the silverlight option under debuggers.

The original steps are: 

  1. This work around requires the Silverlight 2 Tools for Visual Studio 2008 SP1 to be installed. So if you don't have these tools installed, you can download them from Microsoft (download here). If this is not an option for you, there is some alternative work arounds at the bottom of this blog post.
  2. Right click on your project and open up project properties
  3. Go to the 'Start Options' sheet, and click the 'Silverlight' button at the bottom of the screen. Because the debugger cannot debug both Silverlight code and Script code at the same time, this will disable Script debugging and therefore avoid the problem.
Alternatively you can turn off script debugging altogether:
  • 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
And to re-enable:
  • reg add HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {170EC3FC-4E80-40AB-A85A-55900C7C70DE} /f

Happy non-script debugging.

Tags:

Visual Studio

Comments

8/16/2010 10:31:26 PM #

that's very good info
i think i will put some my own blog Laughing
cheers
http://zoodiscounts.net
http://tvdump.net

remedies for zits

8/27/2010 7:16:26 PM #

yeah i think that too

Download FIFA 2011 Free

Add comment




biuquote
Loading