0
0
Node.jsframework~10 mins

Chrome DevTools for Node.js in Node.js - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start Node.js with the inspector enabled.

Node.js
node --[1] app.js
Drag options to blanks, or click blank then click option'
Adebug
Binspect
Crun
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using --debug which is deprecated
Using --run which does not enable debugging
Using --start which is invalid
2fill in blank
medium

Complete the code to pause execution on the first line using the inspector.

Node.js
node --inspect-brk [1]
Drag options to blanks, or click blank then click option'
Aindex.js
Bmain.js
Capp.js
Dserver.js
Attempts:
3 left
💡 Hint
Common Mistakes
Using a file name that does not exist
Omitting the file name
Using --inspect without --inspect-brk to pause
3fill in blank
hard

Fix the error in the command to open Chrome DevTools for Node.js debugging.

Node.js
chrome://[1]
Drag options to blanks, or click blank then click option'
Adebug
Bdevtools
Cinspect-devtools
Dinspect
Attempts:
3 left
💡 Hint
Common Mistakes
Using chrome://devtools which opens DevTools for the browser
Using chrome://debug which is invalid
Using chrome://inspect-devtools which does not exist
4fill in blank
hard

Fill both blanks to create a debugger statement and start Node.js with the inspector.

Node.js
function test() {
  [1];
}

node --[2] app.js
Drag options to blanks, or click blank then click option'
Adebugger
Binspect
Cbreakpoint
Ddebug
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'breakpoint' instead of 'debugger'
Using --debug which is deprecated
Omitting the debugger statement
5fill in blank
hard

Fill all three blanks to connect Chrome DevTools to a Node.js process on port 9229.

Node.js
node --[1]=9229 app.js

Open Chrome and go to chrome://[2]

Click on 'Configure' and add 'localhost:[3]' to the list.
Drag options to blanks, or click blank then click option'
Ainspect
C9229
Ddebug
Attempts:
3 left
💡 Hint
Common Mistakes
Using --debug instead of --inspect
Using wrong port number
Not adding the correct port in Chrome's configuration