Home > PHP > 9 PHP Debugging Techniques You Should Be Using

9 PHP Debugging Techniques You Should Be Using

Isn’t writing new code great? Wouldn’t the world be a better place if all were ever had to do is write software from scratch, not having to worry about methods of classes past? Unfortunately, we all know that this is not the case. In fact, estimates say that we spend around 80% of our programming time maintaining old code.

The tutorial talks about following techniques:

  • Enable Notices (on your development environment!)
  • Use a Logging System
  • Log Errors
  • Check Function Parameters
  • Use an Integrated Development Environment and Debugger
  • Unit Testing
  • No Magic! (Or, Avoid Side Effects)
  • Use Manual Redirects When Debugging
  • Keep Things Simple

Link: 9 PHP Debugging Techniques You Should Be Using

Categories: PHP Tags: , ,
  1. November 24th, 2009 at 08:46 | #1

    can u write example php code for every debugging.

  1. No trackbacks yet.
data recovery