I am running a Node.js application within a Linux VM in Oracle VirtualBox. The port 5858 on the VM is forwarded to the port 5858 on the localhost.<
5858
Just a heads up, when I tried this I had to use --debug-brk. Running with just --debug didn't allow WebStorm to set breakpoints after connecting.
--debug-brk
--debug