node-inspector –webhost不是本地的! 它的一个Web应用程序

如果我进入

node --debug /home/engine/public_html/myapp.js 

然后在另一个腻子选项卡

 node-inspector --webhost http://website.com 

我仍然告诉我打开浏览器,看看本地…

 Node Inspector v0.7.0-2 info - socket.io started Visit http://127.0.0.1:8080/debug?port=5858 to start debugging. 

我的网站在哪里,而不是本地。 当我看到这个地址,检查员告诉我,铬说

 This webpage is not available 

我已经打开端口5858和8080我不明白这是如何工作的。

即使我尝试使用节点检查器来debugging远程站点时,也会得到localhost url。

尝试在启动检查器和应用程序后访问urlhttp://website.com/debug?port=port_number

这里是步骤:

  1. 启动Node Inspector服务器$ node-inspector –web-port = 5050

  2. 在Node进程中启用debugging模式$ node –debug = 5050 app.js

  3. 加载debugging器UI 在Chrome浏览器中打开http://website.com/debug?port=5050