无法在 Windows 上安装 XDEBUG?

发布于 2024-12-23 10:25:18 字数 590 浏览 4 评论 0原文

我的 PHP 版本是 PHP 版本 5.3.6

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

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

当在 cmd 上输入“php --ini”时。它显示: 在此处输入图像描述

my php version is PHP Version 5.3.6.

Xdebug setting in php.ini:

[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.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

就像说晚安 2024-12-30 10:25:18

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


德里克

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

cheers,
Derick

温折酒 2024-12-30 10:25:18

不要尝试混合匹配模块,而是尝试从 Apache Friends 下载库存。 http://www.apachefriends.org/en/xampp-windows.html

XAMPP 开箱即用 xdebug。

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

XAMPP comes with xdebug right out of the box.

乄_柒ぐ汐 2024-12-30 10:25:18

看起来您只需要下载适合您的 Windows / PHP 版本的 xdebug 版本。 这里有 VC9 版本,只需选择适合 32 位或 64 位的版本即可。

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.

聆听风音 2024-12-30 10:25:18

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

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

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

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

摇划花蜜的午后 2024-12-30 10:25:18

如果你不使用Xamp。

  1. 下载与您的 php 版本相对应的 Windows 二进制文件: https://xdebug.org/download
  2. (可选)移动下载的文件( php_xdebug.......dll 在公共位置并重命名:例如 C:\phpextensions\ 中的 xdebug.dll
  3. 运行 php --ini< /code> 在 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

If you don't use 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.dll in C:\phpextensions\
  3. Run php --ini in 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:
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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文