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
can u write example php code for every debugging.