VS2010 and IE10 Attaching the Script debugger to process iexplore.exe failed

mstaffeld picture mstaffeld · Nov 16, 2012 · Viewed 77k times · Source

So I am using Win7 x64 with VS2010 and have installed the IE10 Win7 Preview and ReSharper 6.1.

When I attempt to Start Debugging, I receive the following:

"Attaching the Script debugger to process '[1111] iexplore.exe' on machine 'MINE' failed. A debugger is already attached."

I can click OK and look at attached debug sessions - [1111] is grayed out and there is another instance of iexplore.exe with my solution title. I can attach manually and it works fine.

I thought maybe since there were two iexplore.exe pids there would be something wrong, there are not two tabs or windows open and I disabled automatic crash recovery.

Tried this: Attaching the Script debugger to process '[XXXX] IEXPLORE.EXE' on machine 'NAME' failed

Did not work.

Any ideas?

Answer

Dmitri Leonov - MSFT picture Dmitri Leonov - MSFT · Mar 1, 2013

There is a simpler fix for the JavaScript debugging issue in IE10:

  1. Close IE
  2. In elevated cmd prompt run this command:

    regsvr32.exe "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VS7Debug\msdbg2.dll"
    

(or %ProgramFiles% on a 32-bit OS)