下面由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
說明
-
設置xdebug.remote_enable = 0或者xdebug.remote_autostart = 0,關掉這兩項中的任意一項,就不會出現很慢的情況,但是關掉后就不能監聽斷點就行調試了;
-
xdebug.remote_host改成127.0.0.1,而不是localhost,phpstorm中的設置也是;
-
xdebug.remote_port只要是一個可用的端口并和phpstorm中的配置一樣就行;
-
剩下的配置的,按照配置就行了。
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END