zoukankan      html  css  js  c++  java
  • docker 安装xdebug

    安装xdebug扩展:

    1.下载压缩包
    wget http://xdebug.org/files/xdebug-2.5.5.tgz
    note:提前查询版本 要适配PHP版本 我目前的版本是5.6 PHP7注意安装xdebug-2.7.2.tgz

    2.解压并进去
    tar zvxf xdebug-2.7.2.tgz
    cd xdebug-2.7.2


    3.编译
    phpize # 生成configure文件
    ./configure # 配置
    make && make install # 编译并生成


    4.在容器环境的配置目录下新增配置文件ls/usr/local/etc/php/conf.d/xdebug.ini 配置文件内容如下:
    zend_extension="xdebug.so"
    xdebug.profiler_enable = 0
    xdebug.profiler_enable_trigger = 1
    xdebug.profiler_output_name = callgrind.out.%t.%p
    xdebug.profiler_output_dir ="/usr/local/php/xdebug_profiler"
    xdebug.auto_trace = 0
    xdebug.show_local_vars=0
    xdebug.var_display_max_children=128
    xdebug.var_display_max_data=512
    xdebug.var_display_max_depth=5
    xdebug.collect_params=1
    xdebug.collect_return=1
    xdebug.remote_autostart=0
    xdebug.remote_enable=true
    xdebug.remote_host="192.168.30.38"
    xdebug.remote_port=9001
    xdebug.remote_handler =dbgp
    xdebug.remote_log="usr/local/php/xdebug/remote.log"
    xdebug.trace_enable_trigger = 1
    xdebug.idekey=PHPSTORM
    xdebug.trace_output_dir = "/usr/local/php/xdebug_trace"
    ;xdebug.overload_var_dump = 0


    5.下载谷歌xdebug-helper
    设置idekey


    6.phpstorm 里面设置ip idekey 端口 记得和扩展配置保持一致下·

  • 相关阅读:
    微信登录
    Nginx负载均衡的优缺点
    elk 比较不错的博客
    Filebeat 5.x 日志收集器 安装和配置
    日志管理系统ELK6.2.3
    python3爬虫编码问题
    zabbix监控进程
    linux下查询进程占用的内存方法总结
    Ubuntu 16.04安装Elasticsearch,Logstash和Kibana(ELK)Filebeat
    ELK多种架构及优劣
  • 原文地址:https://www.cnblogs.com/-cyh/p/14743884.html
Copyright © 2011-2022 走看看