[英]How to configure PHP XDebug with Eclipse on XAMPP v3.2.1 for Windows?
XDebug is not enabled by default in XAMPP on Windows, and all attempts to install a debugger lead to dead trails. 在Windows的XAMPP中,默认情况下未启用XDebug,并且所有尝试安装调试器的尝试都将导致无效跟踪。
pecl install xdebug
does not work on windows, and errors out with ERROR: The DSP xdebug.dsp does not exist.
pecl install xdebug
在Windows上不起作用,并且错误并因错误而出ERROR: The DSP xdebug.dsp does not exist.
The only download of Zend Debugger is a cygwin build, not XAMPP compatible. Zend Debugger的唯一下载是cygwin版本,不兼容XAMPP。
The DLL php_xdebug.dll
already comes bundled with XAMPP but for some silly reason the config is commented out by default. DLL
php_xdebug.dll
已经与XAMPP捆绑在一起,但是出于某些愚蠢的原因,默认情况下该配置已被注释掉。
Uncomment the lines near the end of php.ini
, set remote_enable=1
and restart Apache: 取消注释
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"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.