When all else fails, I use The Scientific Method:
- comment out half the code
- see if I still get the bug
- if no then uncomment half the commented-out code and go to step 2
- if yes then comment out half the un-commented-out code and go to step 2
It’s fairly rare I need to do this in php, but currently hacking in vbscript which I don’t know at all …
September 5, 2009 at 3:36 pm
you could probably also name this the “binary search” method, as each test cuts the search rows in half.
September 7, 2009 at 4:48 pm
Actually, that’s a better name – The Scientific Method implies forming a hypothesis and then testing it, doesn’t it? More or less the exact opposite of this, which I use when I’ve totally run out of hypotheses
September 16, 2009 at 11:17 am
I put into practice the method i think i got good name to this method.