1. Open phpinfo to check the version information and see if xdebug is installed.
2. Go to the official website to download the corresponding version of xdebug [Official website: https://xdebug.org/download.php ]
3. Put the downloaded xdebug plug-in in the ext directory under the php installation directory.
5. Search for xdebug in phpinfo, and the version information of xdebug appears, indicating that the installation is successful