Message from JavaScript discussions
February 2018
— Better than console.log("FUCK")
(all too common in my old code)
Before I knew about breakpoints I used to put those all over where I thought the problem was, different curse words, then I'd know the approximate area of the issue depending on which swear word popped up 😂👌
— Gives me hope
— Can you teach me the art of breakpoint debugging?
— Yes yes, use debugger clause
— It is a pathway to abilities many consider unnatural
— MKRhere Check out step 3 of this: https://developers.google.com/web/tools/chrome-devtools/javascript/
— These are also a good read:
— Https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/Debugging_JavaScript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger
— I don't use debugger
but I will now :O
— Saves some time and node --inspect-brk
— Node: https://nodejs.org/en/docs/inspector/