ember/template-no-debugger
April 20, 2026 ยท View on GitHub
๐ผ This rule is enabled in the ๐ template-lint-migration config.
Disallows usage of {{debugger}} in templates.
The {{debugger}} helper is useful for debugging but should not be present in production code.
Rule Details
This rule disallows the use of {{debugger}} statements in templates.
Examples
Examples of incorrect code for this rule:
<template>
{{debugger}}
<div>Content</div>
</template>
<template>
{{#if condition}}
{{debugger}}
{{/if}}
</template>
Examples of correct code for this rule:
<template>
<div>Content</div>
</template>
<template>
{{this.debug}}
</template>
Related Rules
- no-debugger from ESLint