> For AI agents: the complete documentation index is available at https://rslint.rs/llms.txt, the full documentation bundle is available at https://rslint.rs/llms-full.txt.

# no-debugger

[Added in v0.1.14](https://github.com/web-infra-dev/rslint/releases/tag/v0.1.14)
## Configuration

| Preset                   | Configured Value |
| ------------------------ | ---------------- |
| ✅ js.configs.recommended | `"error"`        |


```ts title=rslint.config.ts
import { defineConfig, js } from '@rslint/core';

export default defineConfig([
  js.configs.recommended,
  {
    rules: {
      'no-debugger': 'error',
    },
  },
]);
```

## Rule Details

Disallows the use of `debugger` statements. The `debugger` statement is used to tell the JavaScript runtime to pause execution and open a debugging session. These statements should be removed before deploying code to production, as they can halt execution and are only useful during development.

Examples of **incorrect** code for this rule:

```javascript
function check(value) {
  debugger;
  return value > 0;
}
```

Examples of **correct** code for this rule:

```javascript
function check(value) {
  return value > 0;
}
```

## Original Documentation

- [ESLint: no-debugger](https://eslint.org/docs/latest/rules/no-debugger)
- [Source code](https://github.com/eslint/eslint/blob/v10.8.1/lib/rules/no-debugger.js)
