如何在XAMPP v3.2.1 for Windows上使用EclipseconfigurationPHP XDebug?

Windows上的XAMPP中默认不启用XDebug,并且所有安装debugging器的尝试都会导致死亡跟踪。

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"