Files
codeql/javascript/ql/src/LanguageFeatures/DebuggerStatement.qhelp
2018-08-02 17:53:23 +01:00

36 lines
744 B
XML

<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<p>
The <code>debugger</code> statement should only be used during debugging, and should not appear in production code.
</p>
</overview>
<recommendation>
<p>
Remove all <code>debugger</code> statements.
</p>
</recommendation>
<example>
<p>
The following implementation of Quicksort contains a <code>debugger</code> statement which can be removed without
affecting the program's functionality.
</p>
<sample src="examples/DebuggerStatement.js" />
</example>
<references>
<li>Mozilla Developer Network: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger">The debugger statement</a>.</li>
</references>
</qhelp>