Which command can be run to access DevTools and make sure the breakdown is hit?

A developer is debugging a web server that uses Node.js The server hits a runtime error every third request to an important endpoint on the web server.

The developer added a break point to the start script, that is at index.js at he root of the server’s source code. The developer wants to make use of chrome DevTools to debug.

Which command can be run to access DevTools and make sure the breakdown is hit?
A . node -i index.js
B . Node –inspect-brk index.js
C . Node inspect index.js
D . Node –inspect index.js

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments