Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jamie Wong's Blog:
Effective bugfixing techniques for PHP
Dec 06, 2006 @ 19:46:56

In his travels as a PHP developer, Jamie Wong has gathered some helpful debugging tips that are shared in this latest post to his blog.

Here are some bugfixing rules and tips I’ve learned working all these years with PHP. I emphasize mostly on fixing bugs than preventing them, which is another subject worth of its own article. I’ve moved to Rails, but I wanted to finish this post as a farewell and thanks to every article and documentation that was useful to me. Hope this is useful to you too.

Topics covered include:

  • Assume nothing
  • Turn Error Reporting to show all errors
  • Read the error message
  • Understand the bug
  • "Scooby-Bug, where are you?"
  • Get as much information as possible
Each has some explanation below it and, in some places, a bit of code to clarify the point.

tagged: bug fix technique effective assume error reporting log information bug fix technique effective assume error reporting log information

Link:


Trending Topics: