Thread
Tweet 1
At my last job I debugged a subtle race condition in obsofucated js and I made no progress with a debugger for a long time but eventually sufficient print statements made it obvious.
---
Tweet 2
This might be a debugger skill issue but I like how print statements keep a log of what you've seen. I don't want to see the state. I want to see the evolution. And if I step through it's easy to go too fast to notice the step I should have been surprised in. Or go too slow
---
Tweet 3
The obsofucated js part might also be a skill issue because I could have turned off the minification to some extent. But I briefly thought the bug was in a dependency. And figuring out how to build it unminified would have been hard. But I was able to build it with prints
---