During development debugging plays an important role as it reduces our development efforts in fixing the bugs.In this article we will describe some of the techniques to help you with debugging the ASP, JavaScript,VBScript in Internet explorer and Firefox.
Debugging JavaScript in Internet Explorer.
Check these under IE Menu bar Tools button.
Tools->Internet Options->Advanced->Disable Script Debugging (Internet Explorer)
Tools->Internet Options->Advanced->Disable Script Debugging (Other Browsers)
There are three applications you can use for script debugging. One is Visual Studio.Net, the second is Microsoft Script Debugger and the third is Microsoft Script Editor: To invoke one of this script debuggers Click on
IE View -> External Script debugger -> Open
Then you are prompted with dialog box with all the installed above applications select one of them and start debugging just like your normal code behind(C#) code or pressing keys f9/f10/f11 keys.
Alternatively you can set the below statements inline your code to debug.
The debugger statement can also be placed anywhere in your code to suspend execution this is similar to setting a breakpoint. The Stop statement is the VBScript version of JScript’s debugger statement
If you want to debug JavaScript in Firefox you need to install Firebug tool.
Debugging ASP Code in Internet Explorer.
To debug the asp code first check these settings under internet manager. Right click on your Virtual Directory properties then popup will appear under the popup go to
VirtualDirectory tab –> Configuration –> Debugging -> Enable server side script debugging
VirtualDirectory tab –> Configuration –> Debugging -> Enable client side script debugging
Now open your asp page and write the debugger statement in your code now it will invoke dllhost and stops at that statement. Just right click on that location and say Break at next statement from popup and then debug just pressing f9/f10/f11 keys.