2020-05-05 【PHP】PhpStorm+Xdebug调试 【PHP】PhpStorm+Xdebug调试 首先我php版本是5.6和7.2两个版本,php5.6下载的是xdebug2.5.5,php7.2使用Homebrew在Linux和macOS上通过PECL安装Xdebug,命令是pecl install xdebugXdebug下载 可以根据自己php版本在官网下载对应的xdebug版本解压tar -xvzf xdebug-2.5.5.tgz进入解压后的目录cd xdebug-2.5.5运行脚本生成 configure文件phpize安装与编译,--with-php-config目录后跟着自己php环境下的php-config文件路径./configure --enable-xdebug --with-php-config=/opt/homebrew/opt/php@5.6/bin/php-config make clean make make install打开php.ini加入下面内容,里面没注释部分是xdebug2的配置,而;分号注释的配置是xdebug3以上版本的配置xdebug.remote_enable = On xdebug.remote_handler =... 2020年05月05日 0 阅读 0 评论