diff --git a/docs/2.guide/3.going-further/9.debugging.md b/docs/2.guide/3.going-further/9.debugging.md index 37ef85dc7b..0fcbeef886 100644 --- a/docs/2.guide/3.going-further/9.debugging.md +++ b/docs/2.guide/3.going-further/9.debugging.md @@ -17,6 +17,19 @@ export default defineNuxtConfig({ }) ``` +## Debugging with Node Inspector + +You can use [Node inspector](https://nodejs.org/en/learn/getting-started/debugging) to debug Nuxt server-side. + +```bash +nuxi dev --inspect +``` +This will start Nuxt in `dev` mode with debugger active. If everything is working correctly a Node.js icon will appear on your Chrome DevTools and you can attach to the debugger. + +::callout{color="amber" icon="i-ph-warning-duotone"} +Note that the Node.js and Chrome processes need to be run on the same platform. This doesn't work inside of Docker. +:: + ## Debugging in Your IDE It is possible to debug your Nuxt app in your IDE while you are developing it.