Sunday, May 19, 2024
157
rated 0 times [  158] [ 1]  / answers: 1 / hits: 16484  / 11 Years ago, thu, april 11, 2013, 12:00:00

I have strange behavior in VS 2012 with JavaScript as if it were caching old version. It appears to not load the latest changes made to the .js file when debugging. 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.



Thanks.


More From » visual-studio-2012

 Answers
10

So it appears JavaScript files were getting cached in 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. Now every time I build/run debugger the most recent JavaScript file is loaded.


[#78967] Wednesday, April 10, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leslijessalyng

Total Points: 650
Total Questions: 85
Total Answers: 109

Location: Croatia
Member since Mon, Sep 6, 2021
3 Years ago
leslijessalyng questions
Fri, Feb 21, 20, 00:00, 4 Years ago
Tue, Jul 30, 19, 00:00, 5 Years ago
Fri, Jul 5, 19, 00:00, 5 Years ago
Wed, Mar 13, 19, 00:00, 5 Years ago
;