zoukankan      html  css  js  c++  java
  • 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
    

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

     

    树上的花开了,人们心里的花也开了,涨不涨?涨。可是树上的花不开,人们心里的花可不可以开?可以。所以,股票价格不是客观事件的反映,是人们内心世界的反映。一样的,有一天树上的花终于开了,可是人们心里的花却在谢,是涨还是跌?跌!
  • 相关阅读:
    RSA签名算法概述及使用
    PyQt5【入门-窗口】
    CSS的一些文本操作有哪些
    Canvas如何绘制精美的图?
    Python学习路线
    表单都应该提交点什么
    网页的图像、表格以及列表的使用和制作
    网页的头部都装点什么
    HTML5,从零开始
    Redis的安装以及spring整合Redis时出现Could not get a resource from the pool
  • 原文地址:https://www.cnblogs.com/anvc/p/13734505.html
Copyright © 2011-2022 走看看