Question: I would like to connect to my node server running in debug mode on AWS (node --debug app.js) from my development machine, and be able to debug my app remotely.

Two questions:

* Can I do this with node-inspector? I wish I could, but node-inspector fails to install on my AWS instance.
* Any alternatives that will allow me to do this?

Answer: 
And with the help of [tepez's](https://stackoverflow.com/a/30974089/2929465) answer, the following worked for me (Node Inspector v0.12.2):

On my machine: 

```
ssh -L 8080:127.0.0.1:8080 <username>@<host> -N

```

On the remote server: 

```
node-debug --cli <appname>

```

And enter the following address in the browser:

```
127.0.0.1:8080/?ws=127.0.0.1:8080&port=5858

```
One more option to use `0.0.0.0` to listen to request from outside:

```
node-debug --web-host=0.0.0.0 --cli app.js

```

and visit this address to debug:

```
http://<the-domain>:8080/?port=5858

```

it would be better if HTTP/2 is available since there are lots of small files.