4 ms·
I've also never used a debugger. Python libraries like icecream (https://github.com/gruns/icecream https://github.com/gruns/icecream) make print debugging prett
by meowface 7y ago
I've also never used a debugger. Python libraries like icecream (https://github.com/gruns/icecream https://github.com/gruns/icecream) make print debugging pretty nice. I wonder if I'm missing out, though. I use VS Code a lot, and have been intending to see if I can fit its debugger into my workflow.
- morenoh149 7y agoI think you are missing out. Debuggers allow you to know the state of variables at every line, not just the ones where you print debug. Debuggers also allow you to set watch expressions and occasionally you step through library code which begins helping you understand the source of your dependencies.
- iamwil 7y agoUsually debuggers take extra steps to set up, and I find it only helps for code that's really hard to reason about. But the most time consuming thing is just stepping through the code, and if it happen to go too far, I have to start over from the top again. I do like time-traveling debuggers though. Those give me something print statements don't give, and it's really great to examine the state as the application is progressing.
- agustif 7y agoJust got this on a newsletter https://github.com/oslabs-beta/reactime https://github.com/oslabs-beta/reactime