Categories
debugging node.js

How to change node.js debug port?

How to change it from 5858 to 7000, for example?

You can use --debug option:

node --debug=7000 app.js

You can use --inspect option for latest node >= v8

node --inspect=7000 app.js

https://nodejs.org/en/docs/inspector/