Possible Duplicate:
JavaScript Debugger
Is there any way to debug javascript. I found many addons on mozilla but I am not able to use them properly because of limited documents. Can any one point me a good debugger on which I could rely on. Thanks In advance.
Firebug is a tool that help you to debug javascript inside browser. You can choose Chrome dev tool either (depend on what you love to use)
If you don’t love to do javascript debug inside browser then I can suggest you to use Visual web developer which is freely available and make you able to debug your code from IDE.
read this Debug JavaScript in Visual Studio 2010?