komode xdebug

要点在于这里:

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>


你可能感兴趣的:(xdebug)