• PHPSTUDY8+XDEBUG+PHPSTORM2019 设置断点调试


    • 环境

      PHPSTUDY8

      PHP 7.3

      xdebug 使用phpstudy 自带

      PHPSTORM 2019.1

    • 配置php.ini 

    [Xdebug]
    
    ;启用性能检测分析
    ;启用代码自动跟踪
    xdebug.profiler_enable_trigger = On
    xdebug.profiler_output_name = cachegrind.out.%t.%p
    ;指定性能分析文件的存放目录
    xdebug.show_local_vars=0
    xdebug.idkey="PHPSTORM"
    ;配置端口和监听的域名
    zend_extension=D:/phpstudy_pro/Extensions/php/php7.3.4nts/ext/php_xdebug.dll
    xdebug.collect_params=1
    xdebug.collect_return=1
    xdebug.auto_trace=Off
    xdebug.trace_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.trace
    xdebug.profiler_enable=Off
    xdebug.profiler_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.profiler
    xdebug.remote_enable=1
    xdebug.remote_host=localhost
    xdebug.remote_port=9100
    xdebug.remote_handler=dbgp

      

    • 配置phpstorm

          php设置 选择自己的php版本

               

      

               debug配置

                

                

               debug validate检查   

                

         servers设置

        菜单栏  file->setting->php->servers(找不到可以搜索server就出来了)  

                  

      

    • 安装浏览器插件

    https://www.jetbrains.com/help/phpstorm/2019.3/browser-debugging-extensions.html?utm_source=product&utm_medium=link&utm_campaign=PS&utm_content=2019.3
    

           

    •  最后打开PHPSTORM 右上角 监听设置

      

    • 备注:

      开启phpsrotm调试,提示:
    Can't start listening for connections from 'xdebug': Port 9000 is busy
    

      说明端口被占用,换其他端口

     

    树上的花开了,人们心里的花也开了,涨不涨?涨。可是树上的花不开,人们心里的花可不可以开?可以。所以,股票价格不是客观事件的反映,是人们内心世界的反映。一样的,有一天树上的花终于开了,可是人们心里的花却在谢,是涨还是跌?跌!
  • 相关阅读:
    ByteArrayInputStream&ByteArrayOutputStream源码分析
    常用FastJSON的SerializerFeature特性及日期转换格式
    SpringAware
    Zuul(SpringCloud学习笔记一)
    RabbitMQ和SpringBoot的简单整合列子
    Cngigure和BUS实现远端配置
    vagrant安装homestead环境使用总结
    sublime安装插件
    vagrant配置(假设已经安装好了vagrant并且下载好了box)
    linux php安装配置oci8模块
  • 原文地址:https://www.cnblogs.com/anvc/p/13734505.html
Copyright © 2020-2023  润新知