H
13

TIL my debug prints were the real problem, not the bug

Spent 4 hours last Tuesday chasing a loop that kept failing in my weather app project. Turns out I had like 30 console.log statements sprinkled everywhere from earlier testing, and one of them was throwing an error because I misspelled a variable. Deleted all the extra prints, and the code ran fine on the first try after that. Has anyone else had debug code cause more issues than the actual bug it was tracking?
1 comments

Log in to join the discussion

Log In
1 Comment
reese177
reese1776d ago
Man, 4 hours over a typo in a print? Sounds like you needed a break more than a cleanup.
1