The proxy can be used as follows: $: node tcpproxy.js 8585 127.0.0.1 5858 8585 here is the 'exposed' port that Webstorm will connect to (you can make this what you wish). You are directing traffic that is coming in on 8585 to 5858 (the local debugging port). Ensure 8585 is open on your firewall if you have one. You have to specify this 'exposed' port in your WebStorm run configuration as a debug port
Hello!
See http://www.jetbrains.com/webstorm/webhelp/running-and-debugging-node-js.html#d50205e808 for information. Note that if the node.js application you are trying to debug is running on a different host, you need to set up a proxy that ensures port forwarding on the Node.js server (see http://delog.wordpress.com/2011/04/08/a-simple-tcp-proxy-in-node-js/, for example). This is necessary because node.js debugging is only listening on localhost.
The proxy can be used as follows:
$: node tcpproxy.js 8585 127.0.0.1 5858
8585 here is the 'exposed' port that Webstorm will connect to (you can make this what you wish). You are directing traffic that is coming in on 8585 to 5858 (the local debugging port). Ensure 8585 is open on your firewall if you have one. You have to specify this 'exposed' port in your WebStorm run configuration as a debug port