DEV Community

Robert Teminian
Robert Teminian

Posted on

Trust no one: don't trust debug message

Did you know that even a machine can lie to you? The only difference is that it's human that makes the machine lie. Not like long time ago, most of the time you can easily find a good explanation for any error or exception you encounter when you code. However, not all messages are of the same weight.

When I was in my last job, I learned it (a bit) hard way.
[Don't trust message your Javascript console emits.]
While others were trying to find the root cause based on the Javascript console, I intentionally ignored it, since it didn't make sense at all in machine language level. Anyway, the message was written by a human, so the console had to lie as the program's exception handler says.

Well, sometimes, you have to see beyond the scene, and read between lines.

Top comments (0)