Solved

Visual Studio 2010 ASP application issues with debugging javascript

Posted on 2011-09-09
5
237 Views
Last Modified: 2012-05-12
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
Comment
Question by:guilloryt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 36512949
What about (in bold) :
<script language="javascript" type="text/javascript" src="/path/to/your/code.js?version=2011090901"></script>
0
 

Author Comment

by:guilloryt
ID: 36513033
0
 

Author Comment

by:guilloryt
ID: 36513047
Is there a way for force ie to load a fresh copy for each session?
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 36513065
>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
 

Author Comment

by:guilloryt
ID: 36967821
thanks
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question