简体   繁体   中英

Node.js remote debug doesn't work

When I start my node application as node --debug . -c=config-name 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`

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM