Last post Jun 13, 2012 07:01 AM by Dino He - MSFT
Jun 11, 2012 08:56 AM|ntabor|LINK
I am working in VS 2010 Ultimate and have the following issue which I have encountered with numerous ASP.NET web applications:
All of my sites use external .js files for various functions, which are frequently changed during development. I take advatage of js debugging in VS2010 IDE, and it works fine on a .js fileUNTIL IT IS CHANGED....
Once I change the content of the .js file (add a line of code, delete a line of code) I have problems. During debug, the breakpoints do not align with the code. Instead, there must be some residual copy of the old .js file which is being used as the debugger
is going to the wrong spots... breaking on blank lines and following logic present on the old file instead of that which is present in the current version of the .js file at start of debug.
It seems as if the only way I get around this is to create a new .js file with the changes and make sure that it has a different name. If I do not do this, it is all screwy....
I found another thread (Similar Issue...) which I attempted to use to fix my issue... Unfortunately,
it did not work.
Does anyone out there have any suggestions????
Jun 12, 2012 05:31 AM|DarrellNorton|LINK
You need to tell IE to always request the latest version of a web page:
Tools -> Internet Options -> Click Settings in the Browsing History section, then select "Check for newer versions of stored pages ... Every time I visit the webpage."
Jun 12, 2012 08:27 AM|Ruchira|LINK
You should clear the cache on the browser so it will not get the old file from the cache. Try by pressing CTRL+F5 or CTRL+R.
Please 'Mark as Answer' if this post helps you
Jun 13, 2012 07:01 AM|Dino He - MSFT|LINK
You can also clean cache by code.