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.

Debugging WordPress with Xdebug

Setting up Xdebug for local PHP development

Debugging with Xdebug and PHPStorm

How to debug PHP code with Xdebug and VSCode