Skip to content

Commit

Permalink
docs: add debugging section
Browse files Browse the repository at this point in the history
closes #707
  • Loading branch information
dougwilson committed Apr 17, 2020
1 parent bcf1f07 commit 909d9e0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,24 @@ app.get('/bar', function (req, res, next) {
})
```

## Debugging

This module uses the [debug](https://www.npmjs.com/package/debug) module
internally to log information about session operations.

To see all the internal logs, set the `DEBUG` environment variable to
`express-session` when launching your app (`npm start`, in this example):

```sh
$ DEBUG=express-session npm start
```

On Windows, use the corresponding command;

```sh
> set DEBUG=express-session & npm start
```

## License

[MIT](LICENSE)
Expand Down

0 comments on commit 909d9e0

Please sign in to comment.