How to change it from 5858 to 7000, for example?
You can use --debug option:
--debug
node --debug=7000 app.js
You can use --inspect option for latest node >= v8
--inspect
node --inspect=7000 app.js
https://nodejs.org/en/docs/inspector/
1.4m articles
1.4m replys
5 comments
57.0k users