Fork me on GitHub

JSLint Error Explanations

JSLint will hurt your feelings. It's time to make them better!


Forgotten 'debugger' statement?

When do I get this error?

JSHint (version 1.0.0 and above) will throw the "Forgotten 'debugger' statement?" error when it encounters a debugger statement. In the following useless example we attempt to use the debugger statement:

This is the equivalent of the older JSHint "All 'debugger' statements should be removed" warning. More detail can be found on the page for that message.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W087. This means you can tell JSHint to not issue this warning with the /*jshint -W087 */ directive.


comments powered by Disqus