Advanced PHP: Debugging Techniques
1h 8mAdvanced2022-06-22
Authors

Gary Kovar
Senior Back-End Developer and Software Engineer
Course details
PHP powers the back end of many of the world’s websites. But its extensive range of error levels makes it hard to know what’s what, especially when it comes to capturing relevant information and debugging errors in your code. In this course for experienced PHP developers, instructor Gary Kovar teaches you some advanced techniques to improve your debugging workflow, using both local and non-local tools to fix issues in your code more efficiently.
Learn how to log and correctly identify error levels to capture the right amount of information for fixing a bug. Explore debugging with local development tools like var_dump, WordPress CLI, Laravel artisan tinker, whoops, and Xdebug. By the end of this course, you’ll also be ready to debug on non-local instances by capturing errors remotely with Monolog.
Learn how to log and correctly identify error levels to capture the right amount of information for fixing a bug. Explore debugging with local development tools like var_dump, WordPress CLI, Laravel artisan tinker, whoops, and Xdebug. By the end of this course, you’ll also be ready to debug on non-local instances by capturing errors remotely with Monolog.
Skills covered
PHPAdvancedSoftware Development ToolsProgramming LanguagesOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - Debugging and PHP
- 02 - What you should know
1. Default Tools for Logging and Identifying Issues
- 03 - Exploring PHP errors
- 04 - Default logging in popular frameworks
- 05 - Configuring PHP error reporting
- 06 - What to log
- 07 - Logging errors to file
- 08 - Logging errors to other locations
- 09 - Understanding back traces
2. Local Development Tools
- 10 - var dump() debugging - Blue-collar debugging
- 11 - What tools are available
- 12 - WordPress CLI shell
- 13 - Laravel artisan tinker
- 14 - Installing and using whoops
- 15 - Installing and using PHP DebugBar
- 16 - Query Monitor for WordPress
- 17 - Ray - Dump debugging
- 18 - Xdebug - Step debugging
3. Debugging on Non-Local Environments
- 19 - What tools are available
- 20 - Safety concerns and precautions on remote servers
- 21 - Using Monolog
- 22 - Paid products
Conclusion
- 23 - Next steps