debugging javascript in VS 2012 - localhost cache has old code

不羁的心 提交于 2019-12-12 19:17:22

问题


I am starting to build a PhoneGap app and decided to use VS2012 as an editor/debugger because Eclipse & XCode don't do javascript debugging (or do they, maybe I missed something) and VS2012 has intellisense for js. Having copied all the html and js files into a VS2012 project, the code ran fine. But then I made an edit, and the debugger won't now stop at a breakpoint on the edited line - there is an error message " adifferent version of this script file has been loaded by the debug process" . It also says "for Windows Store Apps, use 'Debug-Refresh Windows app' - but this isn't a Windows Store App (well not yet anyway!) - the code appears to be running from a localhost cache that has the previous version of my source, even after rebooting the PC. Any idea what to do? Thanks in advance....


回答1:


Ok, solved - just need to do a CTRL+F5 from the browser to reload the new code.



来源:https://stackoverflow.com/questions/13807238/debugging-javascript-in-vs-2012-localhost-cache-has-old-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!