What is the purpose of the –inspect flag when starting a Node.js application?

Node.js Developer Hard

Node.js Developer — Hard

What is the purpose of the –inspect flag when starting a Node.js application?

Key points

  • --inspect enables remote debugging with Chrome DevTools or VS Code
  • It is not related to strict mode or additional runtime checks
  • It does not print detailed module resolution information
  • It is not used for profiling memory usage

Ready to go further?

Related questions