-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node --inspect appears to be broken or unsupported #2969
Comments
One of the following changes worked for me:
|
Where did you find these instructions? Or are you trying something specific that you think may work? If these are instructions, they're incorrect -- we have yet to document them. Try this instead: ./node_modules/.bin/react-scripts --inspect-brk test -- --runInBand |
@0xcaff Running Jest directly (in other projects) works fine for me. I guess it was related to using the different binary path. Also I didn't use @Timer I adapted jestjs/jest#1652 (comment) for |
I don't think you need extra |
Sorry @nickmccurdy, this should do it: ./node_modules/.bin/react-scripts --inspect-brk test --env=jsdom --runInBand |
Thanks, it works! I can remove the leading Should we close this and/or document @Timer's command in the User Guide? Personally I'd rather leave this open until it's documented, though technically my original issue was invalid since it seems I wasn't using the right command anyway. |
We need to add a more ergonomic way of running it that doesn't require specifying |
Should we open another issue for that? |
That issue already exists :); we can close this. Thanks! |
I agree with closing this issue, but where can I find the other issue so I can subscribe? |
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
node -v
: v8.4.0npm -v
: 4.6.1 and 5.3.0 (confirmed on both versions)npm ls react-scripts
: 1.0.11Steps to Reproduce
localhost:9229
.debugger
breakpoint in a test file.node --inspect-brk node_modules/.bin/react-scripts test
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.
The text was updated successfully, but these errors were encountered: