美文网首页
phpstorm docker 安装remote xdebug

phpstorm docker 安装remote xdebug

作者: Jason_b3e0 | 来源:发表于2020-09-10 16:06 被阅读0次
  1. 复制本地php配置
    phpinfo() ; 全选复制配置页内容

  2. 粘贴配置页内容,下载对应配置的xdebug文件
    https://xdebug.org/wizard

  3. 解压和编译
    tar -xvzf xdebug-2.7.2.tgz
    cd xdebug-2.7.2
    phpize
    ./configure
    make & make install

  4. php.ini 添加xdbug配置
    zend_extension=xdebug.so
    xdebug.remote_enable=1
    xdebug.remote_connect_back=1
    xdebug.remote_autostart=1
    xdebug.remote_handler=dbgp
    xdebug.idekey=PHPSTORM

  5. 重启php-fpm

  6. 配置phpstorm


    image.png
image.png image.png image.png image.png image.png image.png image.png image.png image.png

相关文章

网友评论

      本文标题:phpstorm docker 安装remote xdebug

      本文链接:https://www.haomeiwen.com/subject/ykupektx.html