1、下载xdebug模块
注意:带"ts"是线程安全的意思,"nts"的他没有标示,这个要对应你的php版本看看你的php版本是nts还是ts的。
下载地址:
https://xdebug.org/download.php
下载完毕了之后将这个文件放在
C:\phpStudy\PHPTutorial\php\php-7.2.1-nts\ext\php_xdebug-2.6.0-7.2-vc15-nts.dll
2.修改php.ini文件
[XDebug]
zend_extension=php_xdebug-2.6.0-7.2-vc15-nts.dll
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
xdebug.profiler_output_dir="C:\phpStudy\PHPTutorial\tmp\xdebug"
xdebug.trace_output_dir="C:\phpStudy\PHPTutorial\tmp\xdebug"
3.配置phpstrom,看图
5.在你的chrome安装一个插件,如图: