You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start a dev server with remix dev --debug inside a docker container
Try to access it (from VSCode or Chrome Inspector) with the printed address
Expected Behavior
The inspector should be attached
Actual Behavior
The inspector doesn't attach
I think it's because the host is 127.0.0.1 by default (and not configurable) which doesn't work well with Docker, see this SO answer. It should either be 0.0.0.0 by default, or be configurable the way Nodejs debugger CLI is, like this: node --inspect=0.0.0.0:9229 main.js
The text was updated successfully, but these errors were encountered:
The issue exists because --debug starts an inspector without specifying any parameters, and thus does not give us any way to specify a different host to bind to:
The deafult host is 127.0.0.1, which makes it impossible to connect to the inspector from outside of Docker:
A temporary workaround could be to use e.g. Socat to route debugger traffic accordingly.
The actual solution would be to make --debug in remix a boolean OR string argument, so that it can accept address and/or port to bind to: --debug=host:port. It is currently a boolean argument, so no custom host/port can be specified, and it is not passed through to inspector.open();.
What version of Remix are you using?
1.6.5
Steps to Reproduce
remix dev --debug
inside a docker containerExpected Behavior
The inspector should be attached
Actual Behavior
The inspector doesn't attach
I think it's because the host is
127.0.0.1
by default (and not configurable) which doesn't work well with Docker, see this SO answer. It should either be0.0.0.0
by default, or be configurable the way Nodejs debugger CLI is, like this:node --inspect=0.0.0.0:9229 main.js
The text was updated successfully, but these errors were encountered: