配置xdebug的教程不多說(shuō),
要想在有請(qǐng)求到達(dá)php時(shí),php自動(dòng)在文件第一行斷下來(lái),只需要在php.ini中設(shè)置,
[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
關(guān)鍵是
xdebug.remote_autostart=1