Question

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?

Était-ce utile?

La solution

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`
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top