( 1 )下载php 对应版本 xdebug扩展,自行百度安装好
( 2 ) php.ini 增加以下配置 ;
xdebug.zend_extension=/usr/local/lib/php/pecl/20170718/xdebug.so
xdebug.remote_enable=true
xdebug.remote_autostart=1
xdebug.remote_handler = “dbgp”
xdebug.idekey = PHPSTORM
xdebug.remote_host = “127.0.0.1”
xdebug.remote_port = 9001
xdebug.auto_trace=1
( 3 ) 配置 phpstorm
插件名字是: Xdebug helper 和 JetBrains Ide Support
ok,打开断电试试