Javascript files not updating when doing JS debugging

  • Thread starter Thread starter TS
  • Start date Start date
T

TS

1. When i have a webpage open and i change a source javascript file, then
refresh the site and attach to IExplorer process, sometimes the old js code
is running that i hook into (i set a breakpoint in the source file and then
it puts a breakpoint in the running file and i see the code is the old
code).

2. i tried to clear out the temporary asp.net directory but got file acces
permissions.

how do i do 1 & 2?

thanks
 
You need to restart your application, and you need to close the browser and
open a new browser window.
This always works for me.
 
Hi TS,

You can also try configure the IE browser to always refresh for new version
when visit a page or resource item via the following steps:

1. in IE, choose "tools-->internet options" menu item

2. in the dialog, choose "General" tab

3. in the tab, under " Browsing history" section, click the "Settings"
button

4. in the popup setting dialog, select "Every time I visit the webpage" for
the "Check for newer versions of stored pages" option.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.
 
TS said:
1. When i have a webpage open and i change a source javascript file, then
refresh the site and attach to IExplorer process, sometimes the old js code
is running that i hook into (i set a breakpoint in the source file and then
it puts a breakpoint in the running file and i see the code is the old
code).

2. i tried to clear out the temporary asp.net directory but got file acces
permissions.

how do i do 1 & 2?

thanks

The Javascript file is cached in the browser, not in the temporary
ASP.NET directory. Clear the internet cache and reload the page.
 
that worked. Here i was resetiis and clear temp folders and still couldnt'
get it.

thanks
 
TS said:
that worked. Here i was resetiis and clear temp folders and still couldnt'
get it.

Clearing the temp folder also works. You just have to clear the correct
one. ;)
 
Back
Top