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.
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 debugger because you are debugging first time. Refer Image below.
Now, you can easily debug your Java Script code with VS debugger.
Hope this code will help you to come out from hectic task to Java Script Debugging.
You can also use Fire Bug to debug your code on Mozilla Firefox.
You can also refer following links for more help: