WordPress Training Program
Introduction to Xdebug
Previously, you learned only about developing themes & plugins along with a few other advanced concepts. While some may feel that it is enough for getting started with WordPress development, we feel that it would be bad on our part if we donβt help you learn to debug.
Xdebug is a simple solution that can help you debug the PHP code youβve written for WordPress. Check it out at xdebug.org.
Integrating Xdebug with code editor
The easiest way to use Xdebug is by integrating it with your code editor. Check out the below links to find how to integrate Xdebug with your code editor/installation environment.
- VSCode βΒ Debug PHP In VSCode With XDebug
- VSCode – Learn How to Debug PHP with Xdebug & VS Code
Other references:
- Valet β PhpStorm | Learn how to set up Xdebug for PhpStorm and Laravel Valet
- VVV β PhpStorm | Debugging VVV Vagrant Setup With PhpStorm
Debugging WordPress with Xdebug
How to debug PHP code with Xdebug and VSCode
References: