--inspect doesn't work when used in NODE_OPTIONS
See original GitHub issueWhen running this command: NODE_OPTIONS="-r esm --inspect=0.0.0.0:9229" node_modules/.bin/node-dev test_inspect.js
I get this error:
Debugger listening on ws://0.0.0.0:9229/f3bc94ca-7c83-4cd3-bc97-60b332ed4f52
For help, see: https://nodejs.org/en/docs/inspector
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Cannot use NODE_OPTIONS='--inspect' with Next.js 10.0.8
With Next.js 10.0.8, however, this command doesn't seem to work: ... Same as above, we've used the NODE_OPTIONS='--inspect' in version from ...
Read more >Using --inspect-brk via NODE_OPTIONS - Stack Overflow
I am trying to use the NODE_OPTIONS env variable which I believe is being backported back to Node.
Read more >ts-node - npm
Most ts-node options can be specified in a "ts-node" object using their programmatic, camelCase names. We recommend this because it works ...
Read more >Command-line API | Node.js v19.3.0 Documentation
node --v8-options. Execute without arguments to start the REPL. For more info about node inspect , see the debugger documentation.
Read more >2019.3 Debugger fails (doesn't attach) with node --inspect-brk ...
Given: An application which uses npm package.json scripts to fire up nodejs application package.json scripts use node --inspect-brk...
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
Any options that aren’t for node-dev are passed on to the node process. You should be able to do
node-dev --inspect=0.0.0.0:9229 test_inspect.js
Oh interesting, so is there anyway to pass
NODE_OPTIONS
to the underlyingnode
process then?