下面由phpstorm教程欄目給大家介紹如何解決安裝Xdebug后訪問本地項目特別慢的問題,希望對需要的朋友有所幫助!
配置
[Xdebug] zend_extension = "E:SoftWarephpphp-73extphp_xdebug-2.7.2-7.3-vc15-nts-x86_64.dll" xdebug.remote_enable = 1 xdebug.remote_host = "127.0.0.1" xdebug.remote_port = 9009 xdebug.remote_autostart = 1 xdebug.remote_handler = "dbgp" xdebug.idekey = PHPSTORM xdebug.profiler_enable = 0 xdebug.profiler_enable_trigger = 1 xdebug.default_enable = "Off" xdebug.remote_mode = req
說明
-
設(shè)置
xdebug.remote_enable = 0
或者xdebug.remote_autostart = 0
,關(guān)掉這兩項中的任意一項,就不會出現(xiàn)很慢的情況,但是關(guān)掉后就不能監(jiān)聽斷點就行調(diào)試了; -
xdebug.remote_host
改成127.0.0.1
,而不是localhost
,phpstorm中的設(shè)置也是; -
xdebug.remote_port
只要是一個可用的端口并和phpstorm中的配置一樣就行; -
剩下的配置的,按照配置就行了。