Home » Php » php – can't install XDEBUG on windows?

php – can't install XDEBUG on windows?

Posted by: admin July 12, 2020 Leave a comment

Questions:

my php version is PHP Version 5.3.6.

Xdebug setting in php.ini:

[Xdebug]

 zend_extension_ts="D:\php\ext\php_xdebug-2.1.2.dll"
xdebug.remote_enable=1

;IP
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On

i have installed PHP 5.3 VC6 (32 bit)/ PHP 5.3 VC9 (32 bit). they are both failed.

when typed “php –ini” on cmd . it shows:
enter image description here

How to&Answers:

in order to find the correct binary to use, please follow the instructions at http://xdebug.org/find-binary.php

cheers,
Derick

Answer:

Instead of attempting to mix ‘n match modules, try a stock download from Apache Friends. http://www.apachefriends.org/en/xampp-windows.html

XAMPP comes with xdebug right out of the box.

Answer:

Looks like you just need to download the correct version of xdebug for your version of Windows / PHP. There are VC9 builds here, just select the appropriate one for 32 or 64 bit.

Answer:

[http://nepuzz.com/index/detail/18][1]

You can check the above link and install xdebugger in sublime 3 with wamp server easily.

Answer:

If you don’t use Xamp.

  1. Download windows binary corresponding your php version: https://xdebug.org/download
  2. (optional) move downloaded file (php_xdebug…….dll in common location and rename it: for example xdebug.dll in C:\phpextensions\
  3. Run php --ini in cmd to know where is the php.ini file (p.ex: C:\php\php.ini)
  4. Edit C:\phpextensions\xdebug.dll and add following line:
zend_extension = C:\globally\debug.dll
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_autostart = 1
xdebug.remote_port = 9000
xdebug.show_local_vars = 1