From 5c3c656cfad9fcee8bf6708356af1b5ded757432 Mon Sep 17 00:00:00 2001 From: Chris Drifte <74468367+chrisdrifte@users.noreply.github.com> Date: Wed, 30 Oct 2024 08:27:53 +0100 Subject: [PATCH] Add remote debugging advice --- .../07-configuring/16-debugging.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/02-app/01-building-your-application/07-configuring/16-debugging.mdx b/docs/02-app/01-building-your-application/07-configuring/16-debugging.mdx index 79b89b460d6a3..a637b8c97be85 100644 --- a/docs/02-app/01-building-your-application/07-configuring/16-debugging.mdx +++ b/docs/02-app/01-building-your-application/07-configuring/16-debugging.mdx @@ -76,6 +76,8 @@ To debug server-side Next.js code with Chrome DevTools, you need to pass the [`- NODE_OPTIONS='--inspect' next dev ``` +> **Good to know**: Use `NODE_OPTIONS='--inspect=0.0.0.0'` to allow remote debugging access outside localhost, such as when running the app in a Docker container. + If you're using `npm run dev` or `yarn dev` then you should update the `dev` script on your `package.json`: ```json filename="package.json"