有一個緣由就是開啓調試的會話沒有正確的關閉,即PhpStorm這邊關閉了而沒有通知服務端xdebug關閉,致使服務器資源被耗盡,這時只有重啓服務端的服務才能夠。php
因此必須保證每個調試會話被正確關閉。能夠調用PhpStorm的stop中止調試或者一直走完整個調試會話。服務器
關閉xdebug的性能分析功能,只能xdebug來調試代碼。性能分析用xhprofide
配置以下:性能
; XDEBUG Extension
[xdebug]
zend_extension ="D:/wamp64/bin/php/php5.6.16/ext/php_xdebug-2.5.3-5.6-vc11-x86_64.dll"
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="D:/wamp64/tmp"
xdebug.auto_trace = 0
xdebug.show_local_vars=0debug
xdebug.var_display_max_children=128
xdebug.var_display_max_data=512
xdebug.var_display_max_depth=5 調試
xdebug.idekey=PhpStorm
xdebug.remote_enable = On
xdebug.remote_host=127.0.0.1 //IDE所在機器IP
xdebug.remote_port=9000 //IDE監聽的端口號,用來和服務端的XDEBUG通訊用
xdebug.remote_handler=dbgporm
xdebug.remote_connect_back=1 //這個要加上,不然沒法調試,這個配置的做用是當配置的遠程IDE的host和端口號有問題時,會經過請求頭讀取IDE的IP從而完成通訊資源
xdebug.remote_autostart=0rem