Reputation: 3716
It is supposed to be one of the great feature of VS 2008, javascript debugging. But so far, I couldn't make it work. The only way is by using the "debugger" keyword (which don't really work for me but that's another story). Do you have any clue on why it's not working ? I unchecked the "Disable script debugging..." in the IE8 options but it still not works. FYI, I am in a MVC app on my machine (not remote).
Thanks !
Upvotes: 2
Views: 264
Reputation: 500
I used to think the same, until I found where to put the breakpoints...
Upvotes: 1
Reputation: 11256
The way to debug JS from VS is to attach directly to the browser. Go to Tools->Attach to Process (if you don't have an project opened, or Debug->Attach to Process if you do). Select "iexplorer" from the list, make sure to select the right instance, also make sure that the instance you selected has "Script, x86" in the type column. Make sure that "Attach to:" is set to "automatic". Attach. You should now see the list of all pages and resources in your Solution Explorer window. Open up the right file (from solution explorer), set up breakpoints and debug away.
Upvotes: 0