1
我有Xdebug作爲安裝在OSX上的PHP5.6的一部分與Homebrew一起運行。我可以運行PHP-FPM併爲我的網站提供服務,但是使用X-debug進行調試似乎不起作用。如何用Caddy和PHP-FPM配置Xdebug和PhpStorm
這裏是我的EXT-xdebug.ini
[xdebug]
zend_extension="/usr/local/opt/php56-xdebug/xdebug.so"
xdebug.remote_enable = On
xdebug.remote_port="9000"
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/tmp"
xdebug.idekey=PHPSTORM
最低限度更改xdebug端口不是'9000',因爲php-fpm默認使用它。例如使用'9001'(需要在php.ini以及PhpStorm設置中更改):http://stackoverflow.com/a/33816324/783119; http://stackoverflow.com/a/38644688/783119 – LazyOne