php - 如何在适用于 Windows 的 XAMPP v3.2.1 上使用 Eclipse 配置 PHP XDebug?

标签 php windows xampp xdebug

XDebug 在 Windows 上的 XAMPP 中默认未启用,所有安装调试器的尝试都会导致死路。

pecl install xdebug 在 Windows 上不起作用,并出现错误并显示 ERROR: The DSP xdebug.dsp does not exist.

Zend Debugger 的唯一下载是 cygwin 版本,不兼容 XAMPP。

最佳答案

DLL php_xdebug.dll 已经与 XAMPP 捆绑在一起,但由于一些愚蠢的原因,配置默认被注释掉。

取消注释 php.ini 末尾的行,设置 remote_enable=1 并重新启动 Apache:

[XDebug]
zend_extension = "C:\usr\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\usr\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\usr\xampp\tmp"

关于php - 如何在适用于 Windows 的 XAMPP v3.2.1 上使用 Eclipse 配置 PHP XDebug?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29051253/

相关文章:

windows - 在 Windows 10 上的自动启动中以不同用户身份启动软件

c# - 将 DateTime 作为 VarChar 返回以在 DataGridView 中使用

php - HTTP 请求失败 - Google map 地理编码/HostGator

php - @_ -1 在 Perl 中是什么意思?

windows - 在 Win7 中使用 .bat 文件休眠。 hibernate 怎么输入y,不 hibernate 怎么输入n?

MySQL 连接错误 2003 (HY000) : <IP Address> (110)

windows-7 - 如何使80端口可用?在 Windows 7 上安装 xampp 1.7.7?

php - 选择以特定字母或数字开头的所有记录

php - 在 PHP 中按日期和时间排序 MySQL 结果

windows - "code-signed"Windows 应用程序是否不易受到病毒感染?