PHPStorm 与 XDebug 配置

XDebug 配置

环境

  • Nginx 1.4.7 32 bit
  • PHP 5.4.25 32 bit
  • Windows 10 64 bit
  1. 下载 PHP 5.4 VC9 (32 bit)[nts版本]

  2. 配置 php.ini 文件

    php.ini

    [Xdebug]  
    
    zend_extension="B:Serverphp5extphp_xdebug-2.4.1-5.4-vc9-nts.dll"
    xdebug.auto_trace=On  
    xdebug.collect_params=On  
    xdebug.collect_return=On  
    xdebug.profiler_enable=On  
    xdebug.trace_output_dir="B:ServerLogsxdebug	race"  
    xdebug.profiler_output_dir="B:Serverxdebugprofiler" 
    
    xdebug.remote_enable =1
    xdebug.remote_handler = "dbgp"
    xdebug.remote_host = "127.0.0.1"
    xdebug.remote_mode = "req"
    xdebug.remote_port = 9001
    xdebug.idekey="PHPSTORM"
    xdebug.remote_autostart = 1
  1. phpStorm 设置

    设置Files->Settings->Language&Framework->PHP-> 下的 :

    1. Server
    2. Debug -> XDebug 设置与配置文件端口相同
    3. DBGp Proxy
  2. 配置成功完结

原文地址:https://www.cnblogs.com/dongyanglv/p/5991956.html