简体   繁体   English

Visual Studio 2010-调试器未执行当前的Javascript源代码

[英]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. 当我运行VS 2010调试器时,似乎会记住并运行不再存在的“旧” Javascript代码。 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. 当我逐步执行Javascript时,最终会逐步执行不再包含在代码中的javascript函数调用(它们曾经是,但是我将其删除了。)我已经清理,构建,重建了该应用程序……我完全关闭了VS,然后重新打开它,但VS仍在执行不存在的函数调用。 I've cleared the IE cache, refreshed the IE cache (Ctrl-F5.) 我已经清除了IE缓存,刷新了IE缓存(Ctrl-F5)。

The C# code is fine, its only the javascript that won't update. C#代码很好,它只是不会更新的javascript。 Any ideas? 有任何想法吗? b/c I'm running out of them. b / c我快用光了他们。

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. 即使您删除Visual Studio中的代码,浏览器也会在缓存中包含CSS和javascript或jquery文件,因此清除此问题可能会解决您的问题。然后运行Visual Studio,我想您现在无法进入旧代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Visual Studio 2010时禁用IE9 Javascript调试程序 - Disable IE9 Javascript debugger when using Visual Studio 2010 删除Visual Studio / Visual Web Developer 2010 Express调试器并在浏览器的调试器中调试JavaScript - Removing the Visual Studio / Visual Web Developer 2010 Express debugger and debugging JavaScript in the browser's debugger 区域/代码在Visual Studio 2010中的Javascript中崩溃 - Regions/code collapse in Javascript in Visual Studio 2010 我可以在Microsoft Visual Studio 2010中缩小JavaScript或aspx代码 - Can I minify JavaScript or aspx code in Microsoft Visual Studio 2010 Visual Studio 2010中的JavaScript格式 - JavaScript formatting in Visual Studio 2010 在Visual Studio 2010中调试JavaScript? - Debug JavaScript in Visual Studio 2010? Visual Studio 2010:Javascript突出显示 - Visual Studio 2010: Javascript Highlighting 使用 Visual Studio (2010) 在 javascript 中编程? - programming in javascript with Visual Studio (2010)? Visual Studio代码调试器从源映射的内联内容提供文件 - Visual studio code debugger serving file from inline content from source map VS2008 JavaScript调试器IE8“当前位置没有可用的源代码” - VS2008 javascript debugger IE8 “there is no source code available for the current location”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM