Remote debugging in node.js:
*IntelliJ/Webstorm Configuration
3. Select + > Node.js Remote Debug
4. Make sure you enter the port selected above as well as the correct host
Once those are configured simply run the debug target as you normally would and it will stop on your breakpoints.