can't install XDEBUG on windows?

后端 未结 5 1655
轻奢々
轻奢々 2020-12-06 07:26

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\"
xde         


        
5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 08:00

    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
    

提交回复
热议问题