VS2008 javascript debugger IE8 "there is no source code available for the current location"

Posted by Jeff Keslinke on Stack Overflow See other posts from Stack Overflow or by Jeff Keslinke
Published on 2010-03-18T16:28:12Z Indexed on 2010/03/18 16:31 UTC
Read the original article Hit count: 638

I have almost the same problem as this unanswered question. The only difference is I'm using VS2008, but I'm in an MVC project calling this javascript function:

function CompanyChange(compCtrl) {
alert(compCtrl.value);
debugger;
var test;
for (var i = 0; i < document.all.length; i++) {
    test = document.all[i];

}
}

I hit the alert, then I get the message "there is no source code available for the current location." At which point the page becomes unresponsive and I have to manually stop the debugger just to shut it down.

I've logged into another machine and ran this exact code and it works fine, I hit the debugger and can step through. I've checked to make sure all settings in VS>Tools>Options>Debugging are identical as well as IE>Options>Advanced and they are. Both machines are Windows 7 Enterprise edition 32-bit, VS2008, IE8.

I've also tried attaching a process manually in VS, and using the 'Developer Tools' in IE which didn't work (said there already was a process attached).

I was hoping someone may have had this problem and found a work-around because I've already done a lot of searching and tried all the options I've read. Anyone else run into this?

Thank you, Jeff

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about asp.net-mvc