문제

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?

도움이 되었습니까?

해결책

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`
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top