Skip to content

node --inspect appears to be broken or unsupported #2969

@nickserv

Description

@nickserv

See jestjs/jest#1652. As of this issue being fixed in Jest and Node 8.4, this should be fixed in create-react-app but I can't get it to work.

Is this a bug report?

Yes

Can you also reproduce the problem with npm 4.x?

Yes

Which terms did you search for in User Guide?

inspect

Environment

  1. node -v: v8.4.0
  2. npm -v: 4.6.1 and 5.3.0 (confirmed on both versions)
  3. npm ls react-scripts: 1.0.11
  4. Operating system: macOS
  5. Browser and version: Google Chrome Version 60.0.3112.101 (Official Build) (64-bit)

Steps to Reproduce

  1. Open chrome://inspect/#devices in Chromium.
  2. Enable networking and forward localhost:9229.
  3. Set a debugger breakpoint in a test file.
  4. node --inspect-brk node_modules/.bin/react-scripts test
  5. Inspect the target in Chromium.
  6. Resume script execution.
  7. Wait for tests to complete/break.

Expected Behavior

Chromium debugger stops on debugger breakpoint.

Actual Behavior

Chromium debugger doesn't stop on breakpoint and remains at the beginning of the script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions