Join Jon Peck for an in-depth discussion in this video Installing the Xdebug extension, part of Debugging PHP: Advanced Techniques.
If you are using a Web server stack such as MAMP or WampServer then Xdebug …may be already available, so please refer to the appropriate documentation in those cases.…These instructions assume that PECL is already installed on the target server,…which is part of the PEAR packaging system.…If not, please install PEAR.…Additionally, administrative credentials are required.…The following technique was adapted from documentation from Xdebug.org.…Please refer to the documentation for additional troubleshooting …and installation alternatives.…
Netbeans.org also provides some comprehensive installation instructions …with details not found on the Xdebug site.…By using PECL, Xdebug installation is straightforward but does have some little…pain points that I will help mitigate.…From the terminal, connect to the development server.…Next, use PECL to install Xdebug.…This performs the majority of the dirty work, including the downloading and compiling, …but does not actually configure Apache, so type the following command:…
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