DebugBetter - Level-up your debugging skills!

It works on my machine

You’ve probably heard other developers say, “It works on my machine.” Maybe you’ve said it too.

We forget that our development machine is vastly different from production hardware. Aside from being faster and having more memory, there are two key differences that can trip us up:

  1. Our environment is different. We have all dependencies installed already, potentially older ones. We might be building in a type of debug mode all the time, which changes application behaviour. Lastly, our configuration is likely different.
  2. Our timing situation is different. This could be thread timing (we likely have many more cores) or network timing (we likely have wired super-fast internet). This is where slow-network simulation tools come in handy.

“It works on my machine” is information. There could still be a bug. It’s a clue to help your investigation.

- 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.