要点在于这里:
Open the php.ini configuration file on the server. There may be multiple copies of this file, so check the value of "Loaded Configuration File"
in the phpinfo() output
to see which one is being used by the web server (e.g. create a phpinfo.php file containing the line '<?php
phpinfo(); ?>' in a web server directory, then open the corresponding URL in a browser).
可能会有多个php.ini,所以搞来搞去就是不行。记在这里,以免忘记。
; xdebug config for Windows
; - zend_extension_ts is for PHP <= 5.2
; - zend_extension is for PHP >= 5.3
; or you can specify both if your not sure.
zend_extension_ts=c:\path\to\php_xdebug.dll
zend_extension=c:\path\to\php_xdebug.dll
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=<idekey>
本文详细介绍了如何在服务器上打开php.ini配置文件并检查实际使用的文件版本,同时提供了针对不同PHP版本的Xdebug配置指令,确保在开发环境中进行有效的远程调试。
1274

被折叠的 条评论
为什么被折叠?



