Skip to content

nuxi dev --inspect does not work with a custom port, only with the default port 9229 #1369

Description

@Harm-Nullix

Environment

- Operating System: `Darwin`
- Node Version:     `v20.16.0`
- Nuxt Version:     `3.11.2`
- CLI Version:      `3.11.1`
- Nitro Version:    `2.9.6`
- Package Manager:  `yarn@1.22.19`
- Builder:          `-`
- User Config:      `ssr`, `spaLoadingTemplate`, `devtools`, `app`, `css`, `build`, `sourcemap`, `vite`, `serverDir`, `rootDir`, `srcDir`, `dir`, `components`, `modules`, `imports`, `googleFonts`, `i18n`, `lodash`, `nitro`, `ignore`, `macros`, `security`, `runtimeConfig`
- Runtime Modules:  `nuxt-lodash@2.5.3`, `@vue-macros/nuxt@1.9.31`, `@nuxtjs/google-fonts@3.2.0`, `@vueuse/nuxt@10.9.0`, `@nuxtjs/i18n@8.0.1`, `nuxt-security@1.4.3`, `@nuxt/eslint@0.3.13`, `()`
- Build Modules:    `-`

Reproduction

yarn nuxi dev --inspect=0.0.0.0:3050

Describe the bug

When using --inspect as mentioned in the docs, according to the mentioned NodeJS docs, you should be able to put in host and port (and use things like --inspect-brk)

When using a parameter with --inspect, it does not inspect at all.

Additional context

No response

Logs

yarn nuxi dev --inspect
  ➜ Local:    http://localhost:3040/
  ➜ Network:  use --host to expose

Debugger listening on ws://127.0.0.1:9229/75da12b6-42a5-4646-8d7f-e2b996dac9b5
For help, see: https://nodejs.org/en/docs/inspector
yarn nuxi dev --inspect=0.0.0.0:3050
  ➜ Local:    http://localhost:3040/
  ➜ Network:  use --host to expose

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions