Saturday, January 26, 2008

Debugging

My colleague Cedric sent me this funny wisdom on debugging computer code:

The Six Stages of Debugging:
  1. That can’t happen.
  2. That doesn’t happen on my machine.
  3. That shouldn’t happen.
  4. Why in the hell does that happen?
  5. Oh, I see.
  6. How in the hell did that ever work?

3 comments:

Anonymous said...

Especially when looking at PowerPC register dumps...

Bram Stolk Sr said...

In HEX mode reads OFF, No comments

Johan Stolk said...

Hahahhh.. :-)
Sounds familiar...

$a = true;
$b = "blah";
if ($a == $b)
no of course not.. hm..
yes it is, really... arghl..

if ($a === $b)
ah.. I see.. now this IS false

PHP is funny :-)