Can't install Xdebug on XAMPP and Windows XP

耗尽温柔 提交于 2019-12-07 04:01:08

问题


I know, this has been asked several times, but the answers did not solve my problem.

I am running XAMPP 1.8.2 on Windows XP SP3 and am struggling in installing XDebug.

I downloaded XDebug from the website. Unfortunately, the installation wizard did not work for me, my PHP Version is 5.4.16, so I chose the file for PHP 5.4 VC9 TS (32 bit).

I configured my php.ini according to different tutorials:

[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

When restarting apache, no additional entries show up in the phpinfo(). I have checked, that no other debugging or accelleration modules are activated, and also tried to change the Xdebug port, but nothing worked.

The Apache and Windows Error Logs do not contain any entries related to this issue.

Any hints?


回答1:


There seems to be a bug in the XDebug.dll that comes with XAMMP.

Download the TS version from the xdebug website

And configure like this

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"



回答2:


This is a common problem about confusion which php.ini is used, look which php.ini apache uses. You might be editing the wrong ini file.

Look for Loaded Configuration File in phpinfo()

Sometimes it loads from

..\bin\apache\Apache#.#.#\bin\php.ini

In stead of

...\bin\php\php#.#.#\php.ini




回答3:


Ok same problem here but i resolved problem

Download it HERE , if you want BUT

Xampp 1.8.2 no need Xdebug more because , Xampp 1.8.2 have Xdebug.dll !!!

look like this :

zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
zend_extension_ts = "C:\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 = "C:\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 = "C:\xampp\tmp"

So sorry for my bad english...




回答4:


Check security options of .dll xdebug file. If you see on file's icon small lock icon - nobody except you can't use this file. In that case add Users group in security tab in file's properties.



来源:https://stackoverflow.com/questions/17466062/cant-install-xdebug-on-xampp-and-windows-xp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!