?
Solved

Visual Studio 2010 ASP application issues with debugging javascript

Posted on 2011-09-09
5
Medium Priority
?
238 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 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
Suggested Courses

800 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