DEV Community

Norah
Norah

Posted on

Quick Value Checks During Testing and Debugging

During testing and debugging, I often deal with values that aren’t part of the main logic I’m focusing on.

They show up in logs, config files, or sample data — things like dimensions, limits, or thresholds that were set long before I touched the code. Most of the time, these values aren’t the source of the bug, but they still need to be understood correctly to rule things out.

One thing I’ve noticed is how easy it is to assume units without verifying them.

When I’m scanning through logs or test outputs, I might see a number that looks reasonable at first glance. If I assume the wrong unit, though, I can end up chasing the wrong explanation for an issue. The mistake isn’t obvious, but it quietly wastes time.

In situations like that, I don’t want to interrupt my flow too much. I’m not trying to build tooling or automate anything — I just want to confirm a value and move on with the investigation.

If I’m already working in the browser, I sometimes do a quick check using a simple unit conversion page, just to make sure I’m interpreting a millimeter or inch value correctly before continuing:
mmtocm.net

It’s not something I rely on regularly, and it’s definitely not part of any testing framework. It’s simply a small check that helps me eliminate one more unknown while debugging.

In my experience, catching these small assumptions early makes the overall debugging process feel a bit more controlled, even when the problem itself is still unclear.

Top comments (0)