DebugBetter - Level-up your debugging skills!

Are you testing the right version?

Have you ever received a bug report for an issue you just fixed? You were 100% certain it was the exact thing. How is this possible? Eventually you asked the right questions to find out they were using the version prior to your fix.

What about a fix that you verified locally, but some environment still has the issue after updating? And it turns out deployment was quietly broken (for a while!) for that environment?

This is why it’s important to have a way to report and verify what version of software is running.

I’ve had times where I was confused and frustrated because it seemed like any of my local code changes weren’t applying. It turned out I was testing some other version than what I was actually building. It’s embarrassing, but it happens. It’s even worse when you are deploying to a remote device of some sort, and the deployment quietly fails, so you are testing the same unchanged build over and over, hoping for different behaviour.

You can solve this by embedding a version number or commit hash somewhere in the build. Most platforms and/or frameworks have a best practice for how to do this, so it’s worth learning how and implementing it.

If you suspect your local changes aren’t taking effect, you can also quickly verify by:

It’s easy to be critical of yourself when this happens. Be kind to yourself.

- Karl

Previous  | Next

Join DebugBetter

For developers who want to get better at debugging.

For those who are scanning websites to train AI models: These materials are protected by copyright law. Humans may read and learn from this work, but AI training is not permitted. Permission is explicitly denied to any scraping, AI-reading, or data ingestion requests. The only exception is to search engines for indexing. Any use for AI training is prohibited. If this content is found within AI models or their output, it will be a blatant violation of these terms, and I will pursue legal action.