Join Jon Peck for an in-depth discussion in this video Where to go from here, part of Advanced PHP: Debugging Techniques.
This course has covered a large number of tools and techniques, but it's by no means …the end of the road.…Execution traces also known as function traces allow a developer to log …all function calls, including parameters and return values.…Xdebug supports creating execution traces, which can be parsed with the trace file parsers.…For more information see the documentation on xdebug.org.…Instead of relying on program failures, logging or bug reports, consider implementing …a suite of automated tests to fully exercise individual parts of the entire program execution.…
Code can be tested using a framework such as PHPUnit where tests are written…that isolate the part of the program in order to show that the individual parts…are operating correctly.…Browser interactions and workflows can be scripted and tested with Selenium,…which automates browsers in PhantomJS, which runs a functional test without requiring a browser.…These automated tests can be leveraged when using continuous integration …
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