Complete the code to start Node.js with the inspector enabled.
node --[1] app.jsUse --inspect to start Node.js with the inspector enabled for debugging.
Complete the code to pause execution on the first line using the inspector.
node --inspect-brk [1]The --inspect-brk flag pauses execution on the first line of the specified file, here app.js.
Fix the error in the command to open Chrome DevTools for Node.js debugging.
chrome://[1]The correct URL to open Chrome DevTools for Node.js debugging is chrome://inspect.
Fill both blanks to create a debugger statement and start Node.js with the inspector.
function test() {
[1];
}
node --[2] app.jsThe debugger statement pauses execution when DevTools is connected. The --inspect flag starts Node.js with the inspector enabled.
Fill all three blanks to connect Chrome DevTools to a Node.js process on port 9229.
node --[1]=9229 app.js Open Chrome and go to chrome://[2] Click on 'Configure' and add 'localhost:[3]' to the list.
Use --inspect=9229 to start Node.js on port 9229. Then open chrome://inspect and add localhost:9229 to connect DevTools.