Join Jon Peck for an in-depth discussion in this video Exploring PHP error levels and consequences, part of Advanced PHP: Debugging Techniques.
Many years ago, the computer I shared with my family had a program that executed on login …that would randomly display a funny phrase or joke.…One of them is stuck with me. …I did it! I found the program's last bug, bug, bug, bug, bug, bug, bug.…It worked on multiple levels, the joy of finding a problem …and the humorous weirdness of a problem manifesting within the error message itself.…As a software developer, I write computer programs to perform specific tasks …in order to solve problems.…When I write programs in PHP, I'm conforming to the specifications and rules …of both the language and the limitations of the server environment so the …solutions need to be within those boundaries.…
What happens when I bend or break these rules?…An error or a mistake will cause the program to behave erratically or fail.…So what is debugging?…In its purest sense, debugging is the act of identifying and removing errors…from a computer program.…PHP provides a number of built-in mechanisms for debugging scripts by detecting…
This course covers installation of Xdebug on Apache as well as working with the NetBeans IDE (integrated development environment). Jon then introduces native web browser developer tools for Firefox and Chrome, and demonstrates browser independent web debugging tools. Best practices for debugging and profiling web application failures and performance issues are also covered.
- Configuring PHP error reporting
- Logging errors to file
- Gracefully handling fatal errors
- Installing Xdebug
- Understanding the principles of remote debugging
- Remote debugging with NetBeans
- Extending your browser with Firebug, FirePHP, or ChromePHP