admin管理员组

文章数量:1201025

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.

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.

Share Improve this question edited Dec 16, 2012 at 12:28 Gfw asked Dec 16, 2012 at 12:23 GfwGfw 6698 silver badges18 bronze badges 3
  • Does debugging still work if you manually insert a debugger statement in your script? – Frédéric Hamidi Commented Dec 16, 2012 at 12:27
  • How you try to debug? At what point you see the error message you mentioned? – Shadow Wizard Commented Dec 16, 2012 at 12:50
  • In IE, it will sometimes stop on debugger;, but not always - when it does, I will get the error as it continues or it will merely pay no attention to the regular F9 breakpoints . In Chrome, it will stop, but I'm not familiar enough with the Chrome debugger to actually step through. To debug, I am doing exactly what I was doing a few weeks ago before the problem happened. F9 to set breakpoints and 'Debug' as the mode. – Gfw Commented Dec 16, 2012 at 14:18
Add a comment  | 

5 Answers 5

Reset to default 17

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.

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.

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.

I have had this same problem with VS2010 and VS2012 on WIN7 + IE10 CTP back in December last year. I hoped this problem was solved in the RTM version of IE10, today I found out it was not (and probably because it's not a IE10 problem).

Checkout my answer in the link below, maybe it's working for you as well.

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

I have the same error with Windows8 + IE10 + VS2012 Update 1, but today I was update vs2012 with Update 2 and the problem is solved.

VS2012 Update 2 here

本文标签: debuggingVS2012 Lost JavaScript DebuggerStack Overflow