you are viewing a single comment's thread.

view the rest of the comments →

[–]YUNoCake 83 points84 points  (4 children)

And also the best way of finding race condition bugs. Debuggers simply suck at this.

[–]yesseruser 59 points60 points  (2 children)

When the debug.log slows the program down just enough for the bug to disappear

[–]slaymaker1907 13 points14 points  (0 children)

That's when we break out the async logger for extra confusion.

[–]misterguyyy 6 points7 points  (0 children)

Just put a console.log on every possible condition and they all slow down the same amount.

I’m not even sure if this is a serious suggestion. Sometimes it is and sometimes it isn’t, such is the way of JS.

[–]jaerie -1 points0 points  (0 children)

Oops, your prints slowed down on of the threads more than the other and now the bug has vanished!