Skip to content

Commit

Permalink
Add documentation for --debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Oct 19, 2024
1 parent 5e99a06 commit d522c67
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,26 @@ The server is also automatically restarted if one of the following files
changed: `package.json`, `package-lock.json`, `npm-shrinkwrap.json`,
`yarn.lock`, `pnpm-lock.yaml`.

## Debug mode

> Added in `v14.2.0`.
Pass the `--debug` flag to `eslint_d` to enable debug output. Use the `DEBUG`
environment variable to limit debug output to `eslint_d`:

```bash
❯ DEBUG="eslint_d:*"
```

For server side debug output, restart with `--debug` in a separate terminal:

```bash
❯ eslint_d restart --debug # eslint and eslint_d logs
❯ DEBUG="eslint_d:*" eslint_d restart --debug # eslint_d logs only
```

This will keep the process attached to the terminal and print debug output.

## Compatibility

- `14.0.0`: eslint 4 - 9, node 18 - 22 (ships with eslint 9) (see [^1])
Expand Down

0 comments on commit d522c67

Please sign in to comment.