If a Node.js application was started with the --inspect or --inspect-brk flag, you can start debugging it from the built-in Terminal, from the Run tool window, or from the Debug tool window.

  1. Run your application from the Terminal with node --inspect-brk <path to the starting page of your application relative to the project root>.

  2. The Terminal tool window shows an information message Debugger listening <host>:<port>, the default port is 9229. To start debugging, hold Ctrl+Shift and click the link.

    Attach the debugger to a running Node.js app from the built-in Terminal