How to Debug JavaScript Using C#
Client Java Script is one of the most important things in web development but not the best and easiest to develop. Building of bigger and more complicated scripts, especially using DOM model or form field values can cause a lot of frustration and head pain. Moreover, JavaScript debugging is not easy and obvious as should be. But there is a hope. Before start, we should ensure that client script debugging is not disabled in IE as it is by default.
Suitable options are located on advanced tab of Internet Options where both script debugging checkboxes should be unchecked.
Go to Tools>>Options >> and refer image below.
You can also download code from http://www.4shared.com/file/106977680/64e2c2b2/DebugJavascript.html
Now open your code and put Debugger; key word in your code. Refer image below
Now run your code, on IE. You will find and window. Refer image below.
Click yes to start debugging. It will take some time to open debu...