无法在 Windows 上安装 XDEBUG?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8675172/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 18:46:15  来源:igfitidea点击:

can't install XDEBUG on windows?

phpwindowsxdebug

提问by enjoylife

my php version is PHP Version 5.3.6.

我的 php 版本是 PHP 版本5.3.6

Xdebug setting in php.ini:

php.ini 中的 Xdebug 设置:

[Xdebug]

 zend_extension_ts="D:\php\ext\php_xdebug-2.1.2.dll"
xdebug.remote_enable=1

;IP
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On

i have installed PHP 5.3 VC6 (32 bit)/ PHP 5.3 VC9 (32 bit). they are both failed.

我已经安装了 PHP 5.3 VC6(32 位)/ PHP 5.3 VC9(32 位)。他们都失败了。

when typed "php --ini" on cmd . it shows: enter image description here

在 cmd 上键入“php --ini”时。表明: 在此处输入图片说明

回答by Derick

in order to find the correct binary to use, please follow the instructions at http://xdebug.org/find-binary.php

为了找到要使用的正确二进制文件,请按照http://xdebug.org/find-binary.php 上的说明进行操作

cheers, Derick

干杯,德里克

回答by Kenaniah

Instead of attempting to mix 'n match modules, try a stock download from Apache Friends. http://www.apachefriends.org/en/xampp-windows.html

与其尝试混合匹配模块,不如尝试从 Apache Friends 下载股票。http://www.apachefriends.org/en/xampp-windows.html

XAMPP comes with xdebug right out of the box.

XAMPP 带有 xdebug 开箱即用。

回答by quickshiftin

Looks like you just need to download the correct version of xdebug for your version of Windows / PHP. There are VC9 builds here, just select the appropriate one for 32 or 64 bit.

看起来您只需要为您的 Windows/PHP 版本下载正确版本的 xdebug。有VC9建立在这里,只要选择合适的一个32或64位。

回答by Rohan Kumar Shrestha

[http://nepuzz.com/index/detail/18][1]

[ http://nepuzz.com/index/detail/18][1]

You can check the above link and install xdebugger in sublime 3 with wamp server easily.

您可以检查上面的链接并轻松地使用 wamp 服务器在 sublime 3 中安装 xdebugger。

回答by ZecKa

If you don't use Xamp.

如果您不使用 Xamp。

  1. Download windows binary corresponding your php version: https://xdebug.org/download
  2. (optional) move downloaded file (php_xdebug.......dll in common location and rename it: for example xdebug.dllin C:\phpextensions\
  3. Run php --iniin cmd to know where is the php.ini file (p.ex: C:\php\php.ini)
  4. Edit C:\phpextensions\xdebug.dll and add following line:
  1. 下载与您的 php 版本相对应的 windows 二进制文件:https: //xdebug.org/download
  2. (可选)移动下载的文件(php_xdebug.......dll 在公共位置并重命名它:例如xdebug.dllC:\phpextensions\
  3. php --ini在cmd中运行就知道php.ini文件在哪里(p.ex:C:\php\php.ini)
  4. 编辑 C:\phpextensions\xdebug.dll 并添加以下行:
zend_extension = C:\globally\debug.dll
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_autostart = 1
xdebug.remote_port = 9000
xdebug.show_local_vars = 1