Bird
0
0

You run node --inspect app.js but Chrome DevTools does not connect. What is a likely cause?

medium📝 Debug Q14 of 15
Node.js - Debugging and Profiling
You run node --inspect app.js but Chrome DevTools does not connect. What is a likely cause?
AYou forgot to open <code>chrome://inspect</code> in Chrome
BYou used <code>--inspect-brk</code> instead of <code>--inspect</code>
CYour Node.js version is too new
DYou ran the command without <code>node</code>
Step-by-Step Solution
Solution:
  1. Step 1: Check connection setup

    To debug, you must open Chrome's chrome://inspect page to connect to Node.js.
  2. Step 2: Analyze other options

    Using --inspect-brk is valid and pauses app; Node.js version too new is unlikely cause; running without node would cause error.
  3. Final Answer:

    You forgot to open chrome://inspect in Chrome -> Option A
  4. Quick Check:

    Open chrome://inspect to connect debugger [OK]
Quick Trick: Always open chrome://inspect to connect debugger [OK]
Common Mistakes:
  • Assuming --inspect-brk is required
  • Ignoring the need to open Chrome inspect page
  • Not running with 'node' command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Node.js Quizzes