zoukankan      html  css  js  c++  java
  • PHPStorm+XDEBUG 调试Laravel

     首先输出phpinfo();

     https://xdebug.org/wizard.php 打开然后查看适合你的调试扩展版本 ,目前支持到php7.2 

    整个页面ctrl+a  复制进去

    然后下载 扩展文件 下载到 ext目录下

     

     

     在你的php.ini末尾加上,扩展文件的路径要注意  然后重启apache

    [Debug]
    zend_extension = C:CodeXAMPPphpextphp_xdebug-2.6.1-7.2-vc15.dll
    xdebug.remote_enable = On
    xdebug.profiler_enable = On
    xdebug.profiler_enable_trigger = On
    xdebug.profiler_output_name = cachegrind.out.%t.%p
    xdebug.profiler_output_dir ="C:/wamp64/tmp"
    xdebug.show_local_vars=0
    
    xdebug.var_display_max_children=128 
    xdebug.var_display_max_data=512 
    xdebug.var_display_max_depth=5 
    
    xdebug.idekey=PhpStorm
    xdebug.remote_enable = On
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    xdebug.remote_handler=dbgp

     

     打开phpstrom 

     配置你的php环境

     

     

    然后打开 Files->Settings->Languages->PHP->Servers  添加一个环境  host 一定要填你项目的环境

     

      Files->Settings->Languages->PHP->Debug

     

     

     

     

    然后打开

     

     

     

     然后点击小虫子 打开的这个参数非常重要

     PHPStorm 监听到了

     F8 单步调试 F7 进步方法 Shift+F8 跳出方法 常用的了

     结束

     

     

     

     

     

     

     

  • 相关阅读:
    CSP2020 游记
    React中useLayoutEffect和useEffect的区别
    Vue前后端分离跨域踩坑
    Python 正则将link 和 script 处理为 Django static形式
    BootStrap4
    单例模式
    匈牙利算法——求二部图的最大匹配的匹配数
    抽象工厂模式
    工厂方法模式
    JDK配置步骤
  • 原文地址:https://www.cnblogs.com/wlphp/p/10187549.html
Copyright © 2011-2022 走看看