Skip to content

NODE_OPTIONS=--inspect won't work properly after version 13.2.0 #46948

@seiry

Description

@seiry

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

npx next info

    Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.14.0
      npm: 8.3.1
      Yarn: 1.22.17
      pnpm: 6.32.3
    Relevant packages:
      next: 13.2.4-canary.8
      eslint-config-next: 13.2.3
      react: 18.2.0
      react-dom: 18.2.0

Which area(s) of Next.js are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue

https://github.com/seiry/inspect-bug

To Reproduce

init a repo using npx create-next-app, and change script in package.json to use chrome inspect debugger "dev": "NODE_OPTIONS=--inspect next dev",, and run npm run dev

Describe the Bug

the debugger wont work like before
image

and error msg:
image

maybe this pr caused the bug:
#45745

https://github.com/vercel/next.js/pull/45745/files#diff-ddadbe5e107283e1bda7713050b8dcc19065dc804ab082e55e148efac0ef0221R443

image

for the --inspect flag is deprecated

Expected Behavior

should be a node js server code debugger

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions