#Use `--inspect` flag with remix-serve

1 messages · Page 1 of 1 (latest)

west gate
#

Is there a way to use the --inspect flag with remix-serve? I tried this:

-"start": "remix-serve ./build/server/index.js"
+"start": "node --inspect node_modules/.bin/remix-serve ./build/server/index.js"

But got the following result:

⚛ pnpm start

> node --inspect node_modules/.bin/remix-serve ./build/server/index.js

Debugger listening on ws://127.0.0.1:9229/c2fc6841-5e45-4132-af99-fd0b47f829dc
For help, see: https://nodejs.org/en/docs/inspector
/Users/binajmen/Projects/../node_modules/.bin/remix-serve:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
west gate
#

Use --inspect flag with remix-serve