menu

no-debugger

Disallow debugger statements

The debugger statement pauses execution when an attached debugger reaches it. Instead, you SHOULD remove the statement and set a breakpoint through the debugger when needed.

Reported

1declare const active: boolean;2if (active) {3    const resumed = true;4    debugger;5}

Accepted

1declare const active: boolean;2if (active) {3    const resumed = true;4}