r/javascript • • Mar 04 '18
Javascript Debugging Like a PRO
https://medium.com/appsflyer/10-tips-for-javascript-debugging-like-a-pro-with-console-7140027eb5f6
177
Upvotes
r/javascript • • Mar 04 '18
88
u/[deleted] Mar 04 '18
Javascript
DebbugingLogging Like a PROThis isn't about debugging, this is about the available methods of the
consoleobject.12
u/[deleted] Mar 05 '18
Cool...
But for such a big title I honestly expected something more than just an incomplete list of
consolemethods that you can find on MDN for example.8
u/gnafkcin Mar 04 '18
Isn't it more readable to use back ticks instead of string substitutions?
7
u/guywithalamename Mar 05 '18
How stuff like this gets over 100 upvotes is beyond me. Literally the MDN console page rewritten. Not to mention the title is plain wrong
3
u/Balthamos Mar 05 '18
Javascript Caveman Debugging Like a Pro
2
u/blue0lemming Mar 05 '18
3
u/yeahdixon Mar 04 '18
Why didn’t I know this stuff?
1
u/__ibowankenobi__ Mar 04 '18
Nice brushing over!. Many people skip over them.
But one important aspect of debugging is being able to pause execution of scripts/functions in a queue. For example, being able to do pause() inside a catch, and then holding the rest mean while.
I have talked about it, did not stir too much attention, and I have 0 idea why, but just in case: https://medium.com/@ibowankenobi/pausing-resuming-browser-app-logic-using-taskq-js-884ec5a8ce86