Skip to content

VBC-079: debugger-statements ​

error

Category: clean-code
Analysis: Regex (line by line)
File types: .js, .ts, .tsx, .astro
Scope: source code only, ignoring anything inside strings and comments
Tags: clean-code

What it reports ​

debugger; statement found at line {line}. This should never reach production.

Flagged ​

js
debugger;

Not flagged ​

js
inspect(state);

Pattern ​

regex
debugger;

Released under the MIT License.