Reputation: 87
When I start my node application as node --debug . -c=config-name
option there no any message about listening any port.
Also if I run netstat -tlnp
I can't see any application listening port 5858.
By this reason I can't use any debugger such as node-inspector or intellij Idea node plugin.
Any ideas how I can resolve it?
Upvotes: 1
Views: 1858
Reputation: 87
Ohh I got it! --debug
should be entered BEFORE path to executable.
For example vagrant@precise64:~$ node chat.js --debug
doesn't work.
But in this case it works:
vagrant@precise64:~$ node --debug chat.js
debugger listening on port 5858`
Upvotes: 6