如何使用Node-inspector调试我的Sails APP?

时间:2015-09-18 13:26:15

标签: node.js sails.js

我知道这个问题已经发布但我没有得到正确答案。

我安装了node-inspector

我在控制台中输入了node-inspector --debug并得到了这个回复:

        Node Inspector v0.12.3
        Visit http://127.0.0.1:8080/?ws=127.0.0.1:8080&port=5858 to start debugging.

转到上面的网址时,我在Chrome上获得了调试工具

然后从我的项目文件夹中打开一个新的控制台和

运行此命令:sails debug

得到了这些结果:

info: Running app in debug mode...
info: You probably want to install / run node-inspector to help with           debugging!
info: https://github.com/node-inspector/node-inspector

info: ( to exit, type <CTRL>+<C> )

 Debugger listening on port 5858

 info: Starting app...

error: Grunt :: Error: listen EADDRINUSE
    at exports._errnoException (util.js:746:11)
     at Agent.Server._listen2 (net.js:1156:14)
    at listen (net.js:1182:10)
     at Agent.Server.listen (net.js:1267:5)
    at Object.start (_debugger_agent.js:20:9)
    at startup (node.js:86:9)
    at node.js:814:3

我的应用程序在localhost:1337中运行

但我想知道如何用我在Chrome上使用的工具调试我的应用程序。

请有人帮助我,我需要一步一步的解决方案。

0 个答案:

没有答案