cli icon indicating copy to clipboard operation
cli copied to clipboard

Allow to pass host und port arguments for `--inspect` for `nuxi dev`

Open cheindl opened this issue 9 months ago • 2 comments

Hello everybody,

as we are developing most of the times within docker containers, we are often not able to debug nuxt process correctly. When running nuxi dev --inspect the debugging port is opened, but on localhost:9229 which cannot be exposed in a container environment.

Thus it would be very helpful, to allow to pass host and port for the --inspect argument, e.g. the following:

nuxi dev --inspect=0.0.0.0.1234

The --inspect=0.0.0.0:1234 should be properly passed as to the node process.

cheindl avatar Apr 30 '24 09:04 cheindl

I agree. There's a blog post about this use-case here: https://www.liip.ch/en/blog/nuxt3-node-debugging

(Would a patch be welcome?)

filiphazardous avatar May 13 '24 07:05 filiphazardous

Would be nice to use Nuxt with Docker and Kubernetes.

finfa avatar Sep 05 '24 16:09 finfa