I had to teach someone about debugging today, thought I’d share my thoughts here too. What is debugging? First and foremost, debugging is fixing your brain. The code does exactly what it was told to do. It’s YOU that doesn’t like what it does and doesn’t understand why it does that. As such, all debugging is about helping YOU figure out WHY the code behaves in a way that YOU don’t like.
A primer on debugging
A primer on debugging
A primer on debugging
I had to teach someone about debugging today, thought I’d share my thoughts here too. What is debugging? First and foremost, debugging is fixing your brain. The code does exactly what it was told to do. It’s YOU that doesn’t like what it does and doesn’t understand why it does that. As such, all debugging is about helping YOU figure out WHY the code behaves in a way that YOU don’t like.