views:

300

answers:

2

I have script debugging enabled in IE .. I have put the debugger keyword in the file and it gets caught too.. The debugger is already attached to the ie process and type is script ..

When ie prompted "Would you like to debug" I pressed yes and choose Visual Studio 2008 (With my project opened) . When Visual Studio opens up, i get an alert, "There is no source code available for the current location.". When i put a breakpoint, an older version of the file opens.

I think its some problem related to Visual Studio cache.

Any help?

A: 

see Setting breakpoint on the first line of an anonymous Javascript function in Visual Studio 2008, it may be the problem you are having.

Ian Ringrose
i've already added the debugger statement and it does get hit.but after visual studio opens, an older version of the file is opened and the alert comes up.
A: 

This might not be what you asked for, but my advice would be to dump VS for javascript debugging and to use Firebug for this purpose instead. I did so and would not want to go back.

Besides, Firebug can do so many more useful things than just Javascript Debugging, so if you are seious about AJAX developt you really want to install it anyway.

Adrian Grigore
Thanks for the suggestions mate. I do use FireBug when I use Firefox.But I really need to debug on IE!!:(