Next.js Discord

Discord Forum

Unable to connect to debugger in app router server

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
I'm using the app router with v13.5.5
running with NODE_OPTIONS='--inspect' next dev

It looks like it exposes the debug port but immediately fails. I dont have anything else running on that port.

Debugger listening on ws://127.0.0.1:9229/847a46b6-eb6a-425e-93b4-b256e245c2e6
For help, see: https://nodejs.org/en/docs/inspector
Starting inspector on 127.0.0.1:9229 failed: address already in use
   the --inspect option was detected, the Next.js router server should be inspected at port 9229.
Starting inspector on 127.0.0.1:9229 failed: address already in use
Debugger attached.


I'm using PHPStorm and have also tried chrome node debug tools.

Has anyone had any luck getting a debugger setup?

1 Reply

Northeast Congo LionOP
found this: https://github.com/vercel/next.js/issues/55862

confirmed downgrading to v13.4.19 works
I'm assuming v14 will work has well but haven't tried that yet.