1 Go to http://xdebug.org/download.php to download xdebug. Pay attention to find your corresponding php version. Or you can copy the phpinfo information through the http://xdebug.org/wizard.php page and click on the analysis at the bottom. It will tell you which version to download and then how to configure it.
2. Open php.ini and add the following statement
In Settings, select PHP -> Debug, fill in the port you just set in xdebug, and confirm.
4. Configure the browser
Install Xdebug helper on Chrome. Set the Key equal to the key set in php.ini
5. Debugging process: At the bottom of the run menu of PhpStorm, select Start Listen PHP Debug Connections to turn on monitoring. When the browser accesses the breakpoint, PhpStorm will automatically respond.