无法在XAMPP和Windows XP上安装Xdebug

Ste*_*n S 6 php windows xampp xdebug

我知道,这已被问过几次,但答案并没有解决我的问题.

我在Windows XP SP3上运行XAMPP 1.8.2并且正在努力安装XDebug.

我从网站上下载了XDebug.不幸的是,安装向导对我不起作用,我的PHP版本是5.4.16,所以我选择了该文件PHP 5.4 VC9 TS (32 bit).

我根据不同的教程配置了我的php.ini:

[XDebug]
zend_extension_ts = "D:\Stefan\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll"
xdebug.remote_enable = On
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_mode=req
xdebug.remote_port = 9000
xdebug.remote_autostart = 1
Run Code Online (Sandbox Code Playgroud)

重新启动apache时,不会显示其他条目phpinfo().我已经检查过,没有激活其他调试或加速模块,并且还尝试更改Xdebug端口,但没有任何效果.

Apache和Windows错误日志不包含与此问题相关的任何条目.

任何提示?

tle*_*nss 9

XAMMP中附带的XDebug.dll似乎存在错误.

从xdebug网站下载TS版本

并配置这样

zend_extension = "D:\Stefan\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "D:\Stefan\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "D:\Stefan\xampp\tmp"
Run Code Online (Sandbox Code Playgroud)

  • 您指定的版本php_xdebug-2.2.3-5.4-vc9.dll是唯一有效的版本.我尝试了其他变体(vc9和vc11,标准版和x86_64),它们在启动Apache时出错,或者在我尝试调试时在NetBeans中显示"无法加载"消息(并且它不会在断点处停止).谢谢!!! (3认同)