简体   繁体   English

断点当前不会被击中。已调试的进程已加载不同版本的脚本文件

[英]The breakpoint will not currently be hit. A different version of script file has been loaded by debugged process

I have strange behavior in VS 2012 with JavaScript as if it were caching old version. 我在VS 2012中使用JavaScript有奇怪的行为,好像它是缓存旧版本一样。 It appears to not load the latest changes made to the .js file when debugging. 调试时似乎没有加载对.js文件所做的最新更改。 The breakpoint suggests 断点表明

"The breakpoint will not currently be hit. A different version of this script file has been loaded by the debugged process. The script file may need to be reloaded." “断点当前不会被命中。调试过程已加载了此脚本文件的不同版本。可能需要重新加载脚本文件。”

Is there anyway to clear it out so that I can always run with latest changes? 无论如何要清除它,以便我可以随时运行最新的更改? This only started happening recently (possible cause VS 2012 update 2???), I have used 2012 for months now and never had this issue. 这最近才开始发生(可能导致VS 2012更新2 ???),我已经使用了2012年几个月,从来没有遇到过这个问题。

Thanks. 谢谢。

So it appears JavaScript files were getting cached in IE. 所以看起来JavaScript文件正在IE中缓存。 The solution is it to go to IE > Internet Options > Settings (under browsing history) > Check for new version of stored pages : Every time I visit the webpage. 解决方案是转到IE> Internet选项>设置(在浏览历史记录下)>检查存储页面的新版本:每次访问网页时。 Now every time I build/run debugger the most recent JavaScript file is loaded. 现在,每次构建/运行调试器时,都会加载最新的JavaScript文件。

  1. Go to the IE>Tools>Internet Options> Advanced Tab> 转到IE>工具> Internet选项>高级选项卡>

  2. Uncheck the "Disable Script Debugging" option 取消选中“禁用脚本调试”选项

暂无
暂无

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

相关问题 断点当前不会被命中。 没有在JavaScript中为此文档加载任何符号 - The breakpoint will not currently be hit. No symbols have been loaded for this document in JavaScript 断点当前不会被击中。 没有加载任何符号 - The breakpoint will not currently be hit. No symbols have been loaded 断点当前不会被命中。 与2013 javascript相比,此文档未加载任何符号 - the breakpoint will not currently be hit. no symbols have been loaded for this document vs 2013 javascript 断点当前不会被命中。 Windows Phone 8.1 phonegap应用程序中没有为该文档加载任何符号 - The breakpoint will not currently be hit. No symbols have been loaded for this document in Windows Phone 8.1 phonegap apps 由于未加载符号,断点未命中 - Breakpoint not getting hit due to symbols not been loaded 命中断点时,Sourcemap请求挂起。 有没有办法强制预加载? - Sourcemap request pending when breakpoint is hit. Is there a way to force a preload? 我的启动项目中的JS文件出现另一个“断点当前不会被击中”错误 - Yet Another 'The Breakpoint will not currently be hit' error for a JS file in my startup project 运行IE中Javascript已加载的脚本 - Run script that has been loaded by Javascript on IE 尚未加载child_process模块 - child_process module has not been loaded yet TypeScript 调试错误 - 当前未命中断点 - 使用特殊字符时 - TypeScript debug error - the breakpoint not currently be hit - when use special character
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM