Xdebug& PhpStorm - “没有加载调试扩展”

时间:2018-03-21 20:57:52

标签: php phpstorm xdebug

我正在尝试在本地服务器(WampServer)上安装Xdebug并将其与PhpStorm一起使用。

在WampServer中,就我而言,有3个php.ini个文件:

  1. wamp64\bin\apache\apache2.4.23\php.ini
  2. wamp64\bin\php\php7.0.10\php.ini
  3. wamp64\bin\php\php5.6.25\php.ini
  4. 在PhpStorm中,当我尝试验证Web服务器的调试器配置时,我得到了这个:

    enter image description here

    但对于CLI口译员,我得到了这个:

    enter image description here

    所以我的问题似乎是一方面,我的本地服务器使用apache/php.ini,而另一方面,PhpStorm指向php7.0.10\php.ini

    php.ini中的我的XDebug配置:

    ; XDEBUG Extension
    [xdebug]
    zend_extension ="D:/Programs/wamp64/bin/php/php7.0.10/zend_ext/php_xdebug-2.4.1-7.0-vc14-x86_64.dll"
    
    xdebug.remote_enable=1
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port="9000"
    xdebug.profiler_enable=1
    ;xdebug.profiler_enable_trigger = Off
    ;xdebug.profiler_output_name = cachegrind.out.%t.%p
    xdebug.profiler_output_dir="D:/Programs/wamp64/tmp"
    ;xdebug.show_local_vars=1
    ;xdebug.max_nesting_level = -1
    ;xdebug.auto_trace=1
    ;xdebug.trace_output_dir="D:\backup\Johan\professionel\travail_web\env-wp\wp-sites\_xdebug\trace\"
    

    那么如何解决这个问题?

0 个答案:

没有答案