Skip to content

debuggerStatements

Reports using debugger statements.

✅ This rule is included in the ts logical and logicalStrict presets.

The debugger statement causes the JavaScript runtime to pause execution and start a debugger if one is available, such as when browser developer tools are open. While this can be useful during development, it should not be left in production code as it can cause unexpected pauses in execution.

AEfuncti5<3 sp ansty="le--0:#82AAFF;--1:#3B61">B0doubleValu1<1(sp ansty="le--0:#D7DBE0;--1:#403F">53valu7<2:sp ansty="le--0:#D6DEEB;--1:#403F">5<3 sp ansty="le--0:#C5E478;--1:#3B61">B0numb53<[]sp ansty="le--0:#D9F5DD;--1:#1111">1<1)sp ansty="le--0:#D6DEEB;--1:#403F">53< {d ivclassNa="meec-li">nt< sp ansty="le--0:#7FDBCA;--1:#096E">72debugg5<3;d ivclassNa="meec-li">nt< sp ansty="le--0:#C792EA;--1:#8844">AEretu53 valuAB0m5<3(sp ansty="le--0:#D9F5DD;--1:#1111">1<1(sp ansty="le--0:#D7DBE0;--1:#403F">53val1<1)sp ansty="le--0:#D6DEEB;--1:#403F">5<3 sp ansty="le--0:#C792EA;--1:#8844">AE<=>sp ansty="le--0:#D6DEEB;--1:#403F">53 valusp>A5<3 sp ansty="le--0:#F78C6C;--1:#AA09">8<22sp ansty="le--0:#D6DEEB;--1:#403F">53<);d ivclassNa="meec-li">5<3}d ivclassNa="meco"><}d>
44AEfunc361B0doubleVa1<111( spans="tyle--0:#D7DBE0;--1:#40">3F53va6361B0nu3F<53[] spans="tyle--0:#D9F5DD;--1:#11">1<111) spans="tyle--0:#D6DEEB;--1:#40">3F<53 {divclass="Nameec-">de44AEre3F53 va4<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B<0map spans="tyle--0:#D6DEEB;--1:#40">31<111( spans="tyle--0:#D7DBE0;--1:#40">3F53v1<111) spans="tyle--0:#D6DEEB;--1:#40">344 spans="tyle--0:#D6DEEB;--1:#40">3F53 va>4<4AE* spans="tyle--0:#D6DEEB;--1:#40">30<9822 spans="tyle--0:#D6DEEB;--1:#40">3F<53) ;divclass="Nameec-">3<);>

This rule is not configurable.

If your app isn’t shipped to production users, you might choose to disable this rule. For example, if you’re developing a local-only application where pausing in a debugger when dev tools are open is acceptable behavior, this rule might not be useful to you.