zoukankan      html  css  js  c++  java
  • 工具系列 | PHPStrom 2020 配合php-debug在Docker-compose 环境调试

    1、本地安装环境为docker-compose 作为PHP调试环境

     

     2、确保 php74 容器已经安装好了xdebug扩展

     

     3、php.ini 配置文件(PHP7.4映射配置)

    [XDebug]
    xdebug.remote_enable = 1
    xdebug.remote_handler = "dbgp"
    ; Set to host.docker.internal on Mac and Windows, otherwise, set to host real ip
    xdebug.remote_host = host.docker.internal
    xdebug.remote_port = 9000
    xdebug.remote_log = /var/log/php/xdebug.log
    ; idekey value is specific to Visual Studio Code
    xdebug.idekey=XDEBUG_ECLIPSE
    ; Optional: Set to true to always auto-start xdebug
    xdebug.remote_autostart=true

    4、PHPStrom 配置

     

     最后配置

     

     

    作者:Tinywan

    本文版权归作者和博客园共有。欢迎转载,但必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

    欢迎关注个人微信公众号,一起进步!扫描左方二维码即可

  • 相关阅读:
    Dictionary集合 字典
    装箱和拆箱
    List< >泛型集合
    Hashtable 键值对集合
    File 类 的基本操作
    简体转换繁体
    ArrayList集合长度的问题
    ArrayList  集合
    里式转换
    字符串中常用的方法
  • 原文地址:https://www.cnblogs.com/tinywan/p/15347940.html
Copyright © 2011-2022 走看看