最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

debugging javascript in VS 2012 - localhost cache has old code - Stack Overflow

programmeradmin2浏览0评论

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

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

Share Improve this question asked Dec 10, 2012 at 18:49 quilkinquilkin 1,4571 gold badge20 silver badges49 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

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

发布评论

评论列表(0)

  1. 暂无评论