node --inspect appears to be broken or unsupported
See original GitHub issueSee https://github.com/facebook/jest/issues/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.11- Operating system: macOS
- Browser and version: Google Chrome Version 60.0.3112.101 (Official Build) (64-bit)
Steps to Reproduce
- Open chrome://inspect/#devices in Chromium.
- Enable networking and forward
localhost:9229
. - Set a
debugger
breakpoint in a test file. node --inspect-brk node_modules/.bin/react-scripts test
- Inspect the target in Chromium.
- Resume script execution.
- 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.
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
debug-brk` are invalid. Please use `node --inspect` or `node
seems the Node.js version babel-node is using doesn't accept `--debug-brk` option, and Webstorm can't detect what Node.js version is being ...
Read more >The engine "node" is incompatible with this module
yes , you are getting this error because of incompatibility between the package version and node engine. – Shubham Sharma. Jun 16, 2019...
Read more >Debug Node.js Apps using Visual Studio Code
The Visual Studio Code editor includes Node.js debugging support. Set breakpoints, step-in, inspect variables and more.
Read more >How to perform an unsupported conversion from a RHEL ...
This document provides instructions on how to perform an unsupported conversion of your operating system from a different Linux distribution ...
Read more >Node.js v19.3.0 Documentation
If the browser displays the string Hello, World! , that indicates the server is working. Assert#. Stability: 2 - Stable. Source Code: lib/assert.js....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry @nickmccurdy, this should do it:
We need to add a more ergonomic way of running it that doesn’t require specifying
--runInBand
manually and then document it.