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
--inspect-brk=0.0.0.0
does not set host successfully
#26379
Comments
Hi @narthur. Right now the gatsby/packages/gatsby/src/commands/develop-process.ts Lines 61 to 69 in 75add7b
(per nodejs docs https://nodejs.org/api/inspector.html#inspector_inspector_open_port_host_wait - For reference those are the changes that introduced those cli switches - #24693 - to support host part we would need to adjust cli flags (yargs configuration) to be strings and then do some handling to split passed strings into host + port, so syntaxes like:
|
@pieh Thanks for the info! Are you open to a PR on this? |
Hi! I'm closing this as a stale issue as in the meantime Gatsby 4 and related packages were released. You can check our Framework Version Support Page to see which versions currently receive active support. Please try the mentioned issue on the latest version (using the Thanks! |
Description
Using
--inspect-brk=0.0.0.0
withgatsby develop
does not set debugger to listen on 0.0.0.0 as Node's docs indicate it does when used on node directly.Steps to reproduce
node --no-lazy node_modules/.bin/gatsby develop --inspect-brk=0.0.0.0
Debugger listening on ws://127.0.0.1:9229/43d0600c-22dc-40e9-98f6-f27004b6d353
Expected result
Debugger should listen on 0.0.0.0, not 127.0.0.1
Actual result
Debugger listens on 127.0.0.1 instead of 0.0.0.0
Environment
The text was updated successfully, but these errors were encountered: