Folks, DO NOT STOP using console.log. Stepping through code and logging are two different things, with different use cases. One gives you a few into what's happening at a specific time, the other gives you a view into what's happening over time.https://twitter.com/calebporzio/status/1151185995309690886 …
-
-
You can use a `debugger` to find these things out, but rather than being able to build yourself some kind of textual report, you have to clunkily step through the execution while interacting with a GUI.
-
e̶x̶e̶c̶u̶t̶i̶o̶n̶ ̶o̶r̶d̶e̶r̶ Actually, in many cases, what we're trying to find out isn't just the point/iteration that a particular line of code was executed, but whether given the runtime state it was reachable at all. `console.log('are we here?')` etc.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
STOP USING console.log() in JavaScript. There's something just as easy and WAY more powerful!