PHPstorm 2019.3.9使用Xdebug 纠错

安装 Xdebug 

配置PH.ini 文件

zend_extension = /usr/local/lib/php/pecl/20190902/xdebug.so
xdebug.idekey=PHPSTORM
xdebug.remote_port = 9001
xdebug.remote_log = /tmp/xdebug.log
xdebug.default_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_handler="dbgp"

检查是否安装成功

 设置debug

 

原文地址:https://www.cnblogs.com/lucky2017/p/13995263.html