Next.js Discord

Discord Forum

Starting inspector on 127.0.0.1:5556 failed: address already in use

Unanswered
Cassin's Sparrow posted this in #help-forum
Open in Discord
Cassin's SparrowOP
Hi I'm running NextJS on Windows and I'm trying to debug server side with Webstrom.

I tried:

package.json
  "scripts": {
    "dev": "cross-env NODE_OPTIONS='--inspect=5555' next dev",
   }


.env.local
NODE_OPTIONS=--inspect=5555


I tried the fixes in google...

https://github.com/vercel/next.js/issues/9027
https://github.com/vercel/next.js/issues/11030


But at the end using "npm run dev" it always fails starts debugging two times:

> next dev

Debugger listening on ws://127.0.0.1:5556/a77d59a4-c28f-4164-9ab7-37fde8d8b86e
For help, see: https://nodejs.org/en/docs/inspector
   the --inspect option was detected, the Next.js router server should be inspected at port 5556.
   â–² Next.js 14.0.3
   - Local:        http://localhost:3000
   - Environments: .env.local

Starting inspector on 127.0.0.1:5556 failed: address already in use
Starting inspector on 127.0.0.1:5556 failed: address already in use


Any ideas how to fix it?

0 Replies