Join Jon Peck for an in-depth discussion in this video Integrating ChromePHP, part of Advanced PHP: Debugging Techniques.
ChromePHP is a console logging extension for Google Chrome. It's similar to FirePHP, …but the feature set is a little bit more limited, including a lack of stack traces.…While it's not as robust, I can demonstrate how to make it useful.…To use ChromePHP, there are a number of components that need to be assembled.…First, the Chrome Browser, which hosts the ChromePHP extension. Finally …the ChromePHP class, which resides on the server and sends the headers to be logged.…Switching to the Chrome Browser, navigate to http://www.chromephp.com.…
Click the Download link on Step 1 to install the extension.…Click ADD TO CHROME and Add.…You can close the window now for the Chrome Web Store, then switch …to the IDE and open index.php.…I have already installed the ChromePHP Library to save time, …but configuration is required.…Make sure FirePHP is set to False and then set ChromePHP to True. Save index.php.…The only installation step is shown below, which is to include the library, …and start output buffering.…
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