tar命令解壓進入下載好的xdebug目錄執行php
phpize ./configure --with-php-config=/bin/php-config make && make install
zend_extension=xdebug.so xdebug.remote_enable = On xdebug.remote_handler = dbgp xdebug.remote_host= localhost xdebug.remote_port = 9100 xdebug.idekey = PHPSTORM xdebug.remote_connect_back = 1
配置成功後phpinfo輸出以下信息nginx
preferences->Languages&Frameworks->PHP->Debugbash
preferences->Languages&Frameworks->PHP->Debug->DBGp Proxyphpstorm
運行前須要配置 因爲nginx配置的項目運行端口爲8082這裏使用8082ide