配置xdebug的教程不多說,
要想在有請求到達php時,php自動在文件第一行斷下來,只需要在php.ini中設置,
[Xdebug]
zend_extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
關鍵是
xdebug.remote_autostart=1