Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2012 Lost JavaScript Debugger

About 2 weeks ago, I lost the ability to debug JavaScript. I have Windows 8 Pro, IE 10 and Visual Studio 2012 with all updates installed. Until that time, I had no issues - now it does it on every project.

The message I get is...

"No Source Available. The current code thread is not currently running code or the call stack could not be obtained"

Any suggestions as to how I get my JavaScript debugger back? I have already tried do a repair and a re-install with no success.

Thanks in advance for any help.

like image 430
Gfw Avatar asked Dec 16 '12 12:12

Gfw


3 Answers

I had the same problem using VS 2012 after installing IE 10 on Win 7 64bit. I tried several things including "fixing" VS, uninstalling/reinstalling IE10. I couldn't get VS to be set breakpoints in javascript for anything.

What finally worked was in VS 2012 I clicked on the "Play" toolbar button (little green arrow pointing right) and had two items listed for Internet Explorer, one being the default. At the bottom of the drop down from that button, I selected "Browse With" which brought up a dialogue box which let me delete one of the two IE's. I also selected Chrome and then back to IE which may have had an impact. In any case, after doing that, everything is working again.

like image 92
user2157445 Avatar answered Oct 20 '22 13:10

user2157445


I kept playing and removed KB2781514, did a repair on VS2012 and got the JavaScript debugger back - all seems to now work, but I'm really afraid to install that update.

I also turned off automatic updates and will make sure that I set a restore point before adding most any future update.

like image 1
Gfw Avatar answered Oct 20 '22 13:10

Gfw


Try the solution form this post - VS2010 and IE10 Attaching the Script debugger to process iexplore.exe failed

  • Close IE
  • 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

    Restart VS & IE. I restarted the machine to be sure.

like image 1
Mayank Avatar answered Oct 20 '22 11:10

Mayank