サーバーをデバッグオプション付きで起動する。ポートも指定できた。
PORT=8080 node --debug bin/www and then start the node-debugger bin/www
次にnode-inspectorを起動、デフォルトで8080を使おうとするので指定してあげる。指定しないと先のサーバーが8080なのでinspectorがコケる。
node-inspector --web-port=8081
親切にデバッグページを教えてくれるのでその通りのURLをブラウザに貼り付ける
Visit http://127.0.0.1:8081/debug?ws=127.0.0.1:8081&port=5858 to start debugging.