@@ -115,13 +115,16 @@ To debug server-side Next.js code with browser DevTools, you need to pass the `-
```bash filename="Terminal"
next dev --inspect
# or
next start --inspect
# next build --inspect is currently not supported
```
The value of `--inspect` is passed to the underlying Node.js process. Check out the [`--inspect` docs for advanced use cases](https://nodejs.org/api/cli.html#--inspecthostport).
> **Good to know**: Use `--inspect=0.0.0.0` to allow remote debugging access outside localhost, such as when running the app in a Docker container.
Launching the Next.js dev server with the `--inspect` flag will look something like this:
Launching the Next.js server with the `--inspect` flag will look something like this:
```bash filename="Terminal"
Debugger listening on ws://127.0.0.1:9229/0cf90313-350d-4466-a748-cd60f4e47c95