Remote debugging NodeJS in Docker with Visual Studio Code Remote debugging NodeJS in Docker with Visual Studio Code docker docker

Remote debugging NodeJS in Docker with Visual Studio Code


By default node.js (and v8 behind it) always use 127.0.0.1 for the debugger. I've looked at cusspvz/node and I can't find anywhere how it exposes the debugger like that.

It used to be difficult to change this configuration but now you can just use the debug option with an explicit host:

node --debug=[::]:5858 test.jsDebugger listening on [::]:5858