简体   繁体   中英

Visual Studio 2010 - Debugger is not executing current Javascript source code

I've never seen this before and I'm getting very frustrated. When I run the VS 2010 debugger, it seems to remember and run "old" Javascript code which is not there anymore. When I step through the Javascript, I end up stepping through javascript function calls that are simply not in the code anymore (they once were but I've removed them.) I've cleaned, built, rebuilt, the app... I've closed VS altogether and re-opened it but VS is still executing the non-existent function calls. I've cleared the IE cache, refreshed the IE cache (Ctrl-F5.)

The C# code is fine, its only the javascript that won't update. Any ideas? b/c I'm running out of them.

By seeing your question,Cache clearance needed in browser.

Even if you remove the code in visual studio, the browser will have css and javascript or jquery files in cache, so clearing this might solve your problem.. then run visual studio, i guess you cant step into old code now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM