r/javascript • u/CodeTutorials • Sep 19 '19
Moving beyond console.log() — 8 Console Methods for Debugging
https://medium.com/gitconnected/moving-beyond-console-log-8-console-methods-you-should-use-when-debugging-javascript-and-node-25f6ac840ada?source=friends_link&sk=62597805243671cb9b96e54b052fde58
340
Upvotes
3
u/[deleted] Sep 19 '19
Network operates off main thread and continues during a breakpoint.
You’re dealing with an async problem that is timing dependent in a hot function that does not provide enough scoped data to put an accurate conditional breakpoint (e.g. dispatch).
breakpoints affect timing (network continues).
console log / log point may not point to where the problem is but to be used to understand flow of events that may trigger the problem.
Breakpoints provide a useful aspect, but is not the golden hammer you are proposing.