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.
I am running WebStorm on the host operating system (Windows 7). In WebStorm I click Run >> Edit Configurations....
I then click the add button (the plus sign) and select Node.js remote debug
. I then enter the name of the configuration and leave the host as 127.0.0.1
and the port as 5858
. I click OK
, and ensure my node app is running on the VM with the --debug
flag.
I then click the bug icon in the WebStorm toolbar and the debugger appears at the bottom of the WebStorm IDE.
How can I confirm that the connection is made successfully? Breakpoints do not work and the console in WebStorm remains empty (while information is sent to the console on the Linux VM). Can anyone suggest what remains to be done to get the remote debugging session working?