[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

Visual Studio 2010 ASP application issues with debugging javascript

One of our Cad/Cam software partners recently implemented a javascript automation interface. It does not have an ide environment. Consequently I am using Visual Studio ASP application with HTM pages and external jscript files to debug the javascript for my application. I place the js code in external files and set references to them in an html file. Add one js function call on the html page to step into the js code.... work well most of the time. But a certain points after editing the js file (and or html file)...when I step into debug the file that actually is executed is the older version without the edits. Today I began getting errors on breakpoints. I added a new line of code to a js file... set a breakpoint on the line. When I step into debug i get an error "debug breakpoint is not valid  now executable code exist at this line javascript". However in the debugger the line is clearly in the js file. It appears the copy being debug is in a cache and is really the older version... any suggestions would be appreciated.

Really new to javascript and web development ...
0
guilloryt
Asked:
guilloryt
  • 3
  • 2
1 Solution
 
leakim971PluritechnicianCommented:
What about (in bold) :
<script language="javascript" type="text/javascript" src="/path/to/your/code.js?version=2011090901"></script>
0
 
guillorytAuthor Commented:
0
 
guillorytAuthor Commented:
Is there a way for force ie to load a fresh copy for each session?
0
 
leakim971PluritechnicianCommented:
>Is there a way for force ie to load a fresh copy for each session?

Appending a version number (?version=2011090901) each time force the browser to request the new version
0
 
guillorytAuthor Commented:
thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now