How do we debug a script?
How do we debug a script? Correct Answer Use of JavaScript Validator & Debugger
Both the JavaScript Validator and the JavaScript Debugger can be used to debug a script. The debugger statement stops the execution of JavaScript, and calls (if available) the debugging function.