简体   繁体   中英

debugging javascript in VS 2012 - localhost cache has old code

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....

好的,已解决-只需从浏览器执行CTRL + F5重新加载新代码即可。

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