T
26

Shoutout to the debugger tool I almost skipped over...

I was making a simple site with buttons that should change color on click, but nothing happened... I kept tweaking the code blindly, then finally used the debugger to see each step and spot the missing line. How do you usually find mistakes in your scripts?
2 comments

Log in to join the discussion

Log In
2 Comments
iris_park
iris_park1d ago
Lol, debugging is my worst enemy sometimes. I used to just spam console.log everywhere like a maniac before I gave in. Now the debugger is my best friend, even if I feel dumb using it at first. Seriously, it's like having x-ray vision for your code's dumb mistakes. My classic move was forgetting basic syntax and then wondering why nothing worked. Tools like that save me from myself, no joke.
1
nancy3
nancy39h ago
You know what gets me, @iris_park, is how the debugger shows you the weird logic holes, not just the broken syntax. I mean, my code will run but do something totally wild because my thinking was off. Stepping through it forces you to see what your data is actually doing, not what you hoped it was doing. It's kinda humbling but it fixes those bugs where you're just guessing. That's when it feels like more than an x-ray, more like holding your code's hand through its own bad choices. Idk, maybe it's just me but that's when it really clicks.
3