25
Saw a dev debug with console.log for 20 minutes at the coffee shop
Guy next to me at Blue Bottle was hunting a bug using nothing but console.log statements. He went through 15 lines of code one by one. Has anyone tried using a proper debugger instead of print statements?
2 comments
Log in to join the discussion
Log In2 Comments
jesse_burns81mo ago
My friend Sarah once spent a whole afternoon debugging a form submission in her app. She had like twenty console.log statements scattered everywhere checking each variable. Turned out she just had the wrong form ID in her selector. After that she finally learned how to use the debugger tool in Chrome. She still claims console.log is faster for quick checks though.
5
walker.alex1mo ago
Man that reminds me of watching a buddy of mine try to fix a website issue by just refreshing the page over and over. Like 30 times before he finally checked the console logs. Print statements have their place though, I still use them sometimes when I just need a quick gut check on something simple.
4