PHP XDEBUG未启用

Gar*_*ary 4 php debugging xdebug php-7

无法启用XDEBUG.任何帮助或检查是否已启用且未反映?我在PHP7上,正在使用Xdebug 2.4.0rc2.PHP.INI设置如下:

[XDebug]
zend_extension="C:/php/ext/php_xdebug.dll"

xdebug.remote_enable = on
xdebug.remote_host = localhost
xdebug.remote_port = 10000
xdebug.remote_handler = dbgp
xdebug.profiler_enable = 1 
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "profilerlogs"
xdebug.profiler_output_name = cachegrind.out.%p
Run Code Online (Sandbox Code Playgroud)

无法启用它.步骤是正确的,但也没有显示安装在phpinfo()中.

Hai*_*ani 6

我遇到了与XAMPP PHP7 相同的问题,现在它已经解决了:)你的C:/php/ext/目录中应该有丢失或错误的扩展文件.

这将解决您的问题.

  1. 转到xDebug
  2. 下载Xdebug 2.4.0rc1(PHP 7.0 VC14 TS 32/64)
  3. 将其重命名为php_xdebug.dll
  4. 将此文件粘贴到"php/ext"文件夹中
  5. 重启服务器.

现在检查你的 phpinfo()

在我的情况下有64位版本所以我刚刚改为32位