1. Download Xdebug module
xdebug:https://xdebug.org/download.php
Note : with "TS" is thread-safe meaning, "nts" he did not mark, that is, if the NTS to download is not marked, the downloaded file name is actually marked.
Wampserver inside is the corresponding module: Bin\php\php5.6.25\zend_ext.
2. Install Xdebug to PHP
Copy the downloaded DLL to the Ext folder in PHP (the extension DLL is here) and rename it to Php_xdebug.dll.
Change in php.ini (in "; Module Settings; " Add below):
[Xdebug] zend_extension=php_xdebug. dll xdebug. remote_enable = on xdebug. Remote_handler = dbgp xdebug. Remote_ host= localhost xdebug. Remote_port = 9000 xdebug. Idekey = Phpstorm
On the Phpinfo page, there will be xdebug related information, indicating that PHP has been configured!
3, Configuration Phpstorm
4. Google Chrome also needs to install extensions
JetBrains IDE Support.
Phpstorm Configuration Xdbug