Search code examples
node.jsgoogle-chrome-devtoolsdevtools

In NodeJS devtools, why are ports being suggested when I click on the Connection panel?


In NodeJS devtools, why are ports being suggested when I click on the Connection panel?

I am also wondering how can I know which ports to connect to?

enter image description here

Thanks


Solution

  • It's the port used by node with debugger option. If you don't specify port, I believe default is 9229. You can run node with debug option by node --inspect app.js. You can specify port by node --inspect=9230 app.js