Bird
0
0

Which port does Node.js use by default when started with the --inspect flag for Chrome DevTools?

easy📝 Conceptual Q2 of 15
Node.js - Debugging and Profiling
Which port does Node.js use by default when started with the --inspect flag for Chrome DevTools?
A80
B9229
C3000
D8080
Step-by-Step Solution
Solution:
  1. Step 1: Recall default debugging port for Node.js with --inspect

    Node.js listens on port 9229 by default when debugging is enabled with --inspect.
  2. Step 2: Match the port number to the options

    Among the options, only 9229 is the correct default port for Node.js debugging.
  3. Final Answer:

    9229 -> Option B
  4. Quick Check:

    Default debug port = 9229 [OK]
Quick Trick: Default inspect port is 9229 unless changed [OK]
Common Mistakes:
  • Confusing with common HTTP ports
  • Using 3000 or 8080 as debug ports
  • Assuming port 80 is for debugging

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Node.js Quizzes