Wednesday, March 31, 2010

javascript debugging

you want to debug your scripts????

just put "debugger" line where you wantto debug....

....
debugger
var softKeyText = node.get_attributes().getAttribute('rewrwe');
...


the code snippet of aspx will hint to debugger line while debugging


an other hard way is


1.Switch to Visual Studio and go to the Debug menu.
2.Choose "Attach to Process"
3.Find iexplore in the list and select it.
4.Click the "Select..." button.
5.In the dialog, choose "Debug these code types:" and select only "Script".
6.Click "OK"
7.Click "Attach"

No comments: