我正在使用PHP版本5.4.14
我无法安装xdebug。
Xdebug installed: no
Server API: CGI/FastCGI
Windows: yes - Compiler: MS VC9 - Architecture: x86
Zend Server: no
PHP Version: 5.4.14
Zend API nr: 220100525
PHP API nr: 20100525
Debug Build: no
Thread Safe Build: no
Configuration File Path: C:\Windows
Configuration File: C:\Program Files (x86)\IIS Express\PHP\v5.4\php.ini
Extensions directory: C:\php这是我的php.ini
[Xdebug]
;zend_extension= C:\php\php_xdebug-2.2.3-5.4-vc9-nts-x86_64.dll
zend_extension= C:\php\php_xdebug-2.2.2-5.4-vc9-x86_64.dll
xdebug.remote_enable=1
xdebug.remote_host= localhost
xdebug.remote_port=9000
xdebug.idekey="netbeans-xdebug"我尝试过2.2.3和2.2.2版本的失败
我没有使用apache,而是在windows 8上使用‘`iis 8’
当我尝试像这样调试它时,它的安装与代码点火器一起工作
等待连接(netbeans-x调试)
有什么想法吗?
发布于 2017-02-23 22:37:01
我设法让XDebug使用PHP7.1在x64 10上运行IIS10,如下所示:
以管理员身份启动命令提示符,并键入以下内容:
php -i > C:\php.txt转到https://xdebug.org/wizard.php并粘贴到C:\php.txt的内容中。
按照说明下载XDebug的哪个版本,并注意它告诉您添加到php.ini文件中的行。
我的PHP.ini看起来像这样(我手动输入了这个信息):
[XDebug]
; XDEBUG Extension
zend_extension = "C:\Program Files (x86)\PHP\ext\php_xdebug-2.5.0-7.1-vc14- nts-x86_64.dll"
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p回到命令提示符中,键入IISRESET重新启动IIS并导致重新加载。
发布于 2018-05-30 18:26:26
谢谢Richard Moore。您提供的试用php -i > C:\php.txt的信息帮助我安装XDebug。
问题是找不到dll。尽管https://xdebug.org/wizard.php指示我使用相对路径。
PHP警告:加载Zend扩展'ext\php_xdebug-2.6.0-7.2-vc15-nts-x86_64.dll‘失败(尝试: ext\ext\php_xdebug-2.6.0-7.2-vc15-nts-x86_64.dll (找不到指定的模块),ext\php_ext\php_xdebug-2.6.0-7.2-vc15-nts-x86_64.dll.dll (找不到指定的模块)在第0行中未知
https://stackoverflow.com/questions/19081976
复制相似问题