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版本]php

  2. 配置 php.ini 文件ide

    php.inidebug

[Xdebug]  
    
    zend_extension="B:\Server\php5\ext\php_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:\Server\Logs\xdebug\trace"  
    xdebug.profiler_output_dir="B:\Server\xdebug\profiler" 
    
    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 設置code

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

    1. Server
    2. Debug -> XDebug 設置與配置文件端口相同
    3. DBGp Proxy
  2. 配置成功完結rem

相關文章
相關標籤/搜索