我想調試我的sails.js應用程序,但我不知道如何在這種情況下啓動node-inspector
。如何在sails.js中使用node-inspector?
通常情況下它會去:
$ node --debug myapp.js
如果我正常運行我的帆應用:
$ sails lift --prod
,然後啓動node-inspector
$ node-inspector --debug-port 1337
Node Inspector v0.7.0-2
info - socket.io started
Visit http://127.0.0.1:8080/debug?port=1337 to start debugging.
我得到了檢查GUI此錯誤:
如果我錯了0Error: read ECONNRESET. Check there is no other debugger client attached to port 1337.
可能的重複[如何在Windows上調試基本node.js應用程序(而不是http)](http://stackoverflow.com/questions/11437958/how-to-debug-a-basic-node-js- application-not-http-on-windows) –