Solved

Visual Studio 2010 ASP application issues with debugging javascript

Posted on 2011-09-09
5
236 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

739 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