Files
sapper/site/content/docs/15-debugging.md
2019-04-28 21:44:34 -04:00

20 lines
515 B
Markdown

---
title: Debugging
---
Debugging your server code is particularly easy with [ndb](https://github.com/GoogleChromeLabs/ndb). Install it globally...
```bash
npm install -g ndb
```
...then run Sapper:
```bash
ndb npm run dev
```
> This assumes that `npm run dev` runs `sapper dev`. You can also run Sapper via [npx](https://blog.npmjs.org/post/162869356040/introducing-npx-an-npm-package-runner), as in `ndb npx sapper dev`.
Note that you may not see any terminal output for a few seconds while ndb starts up.