Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Javascript Developer I Topic 4 Question 102 Discussion

Actual exam question for Salesforce's Javascript Developer I exam
Question #: 102
Topic #: 4
[All Javascript Developer I Questions]

A developer is debugging a web server that uses Node.js The server hits a runtimeerror

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 ?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Thomasena
1 months ago
I'd say B is the answer, but I'm still trying to figure out why the server is hitting a runtime error every third request. Must be some spooky Node.js gremlins at work!
upvoted 0 times
...
Felicidad
2 months ago
I'm gonna have to go with B on this one. Debuggingwith Chrome DevTools is the way to tackle this runtime error.
upvoted 0 times
Lisbeth
9 days ago
Then you can open Chrome DevTools and start debugging.
upvoted 0 times
...
Salome
22 days ago
That's correct! Using --inspect-brk will pause the execution at the first line of the script.
upvoted 0 times
...
Apolonia
25 days ago
B) Node --inspect-brk index.js
upvoted 0 times
...
...
Marva
2 months ago
D seems the most straightforward to me. Just gotta use that '--inspect' flag and we're good to go.
upvoted 0 times
...
Tomoko
2 months ago
Hmm, I think option B is the way to go. That '--inspect-brk' flag sounds like it'll get us right to the breakpoint.
upvoted 0 times
Lonna
25 days ago
Yes, I think you're right. Let's try running 'Node --inspect-brk index.js' to access DevTools.
upvoted 0 times
...
Dacia
1 months ago
I agree, option B is the correct one. It will stop at the breakpoint for us to debug.
upvoted 0 times
...
...
Kimbery
2 months ago
I'm not sure, but I think C) Node inspect index.js could also work to access DevTools
upvoted 0 times
...
Nan
2 months ago
I agree with Jolene, because --inspect-brk will break at the start of the script
upvoted 0 times
...
Jolene
2 months ago
I think the answer is B) Node --inspect-brk index.js
upvoted 0 times
...

Save Cancel