简体   繁体   中英

Javascript debugging in Visual Studio

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?

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.

Its not VS cache its browser cache. F5 to get latest js into the browser.

This is such a frustrating issue. Here's how to address it in VS 2013 (hopefully you have upgraded).

Go into Internet Explorer>Internet Options>Advanced and uncheck Disable Script Debugging(Internet Explorer) and Disable Script Debugging(Other).

Now when you set a breakpoint in Visual Studio and run your solution in debug mode with internet explorer selected, it will hit your breakpoints. I'm not sure whether there's any possible way to do it for other browsers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM