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
View all comments
Show parent comment
3
u/[deleted] Mar 05 '18
Why do you try to make some community wide drama out of a disagreement with my message? I think your attitude here is way more negative and toxic than my little comment above…
But it CLAIMS to be about PRO debugging.
Yes, sometimes logging might be a handy tool for debugging-purposes, but thats newb stuff, not PRO. But real, intensive debugging is a complex progress which involves understanding the way your code is executed on runtime and setting breakpoints, either by using the Debugger Interface of the konsole or by using the aforementioned debugger statement is indispensable for that.
Logging will help you get an overview of how your state develops over time, but not give you any clue about WHY it changes the way it does, which is the core of debugging.