Javascript code edits being ignored?

HI All,

I am debugging some JavaScript. I simply need to adapt the code to loop its procedure. However when adding lines or commenting or even deleting the code it seems the edits are somehow being ignored and the original code it still executing.
Hopefully the image helps explain what is happening. In the Editing View the breakpoint on the returnString += theString.charAt(i); but in the debugging view the breakpoint is shifted but the original operations still execute.

Image showing code in edit and debug view
I am using visual web developer express 2010.

Anyone have any clues what I am doing wrong?
EpipgxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alexandre SimõesManager / Technology SpecialistCommented:
Probably your browser is caching the old javascript file.
Thy Ctrl+F5. In some edge cases, on IE, you really need to close the browser all together :)

Anyway, it's much easier/useful/trustworthy/.../... to debug your javascript directly in the browser dev tools.
Pick whatever browser (Chrome is exceptionally good at this but FireFox or the latest versions of IE are also very good) and hit F12 (in the browser, this has nothing to do with Visual Studio).
Like this you know exactly what is being executed, and this kind of issues you're having are spotted much easier.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EpipgxAuthor Commented:
And a light goes on in the javascript darkness. Chrome F12 and I can see what is happening perfectly, I can stop shying away from javascript now too!

Thanks
0
Alexandre SimõesManager / Technology SpecialistCommented:
If you didn't know about Chrome Dev Tools I strongly suggest you to read the official page:
https://developer.chrome.com/devtools
There you'll have a very good explanation of all it does.

All the major browsers have their own that more or less match the same functionality, just shown in a different way.
For me, Chrome Dev Tools still beats all the others, hands down.
0
EpipgxAuthor Commented:
Thanks I will
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.