Question · NestJS course · Module 6: Error Handling and Monitoring

The --inspect Flag in Node.js

What does the --inspect flag do when running Node.js?

Answer options

  • Checks TypeScript code syntax
  • Enables the V8 debugging protocol, allowing a debugger to be attached
  • Displays a list of installed modules
  • Runs automated tests

You can check the correct answer by solving this task in the CodeWorlds game.