解决安装Xdebug后访问本地项目特别慢

配置

[Xdebug]
zend_extension = "E:\SoftWare\php\php-73\ext\php_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

参考连接

参考连接php

说明

  1. 设置xdebug.remote_enable = 0或者xdebug.remote_autostart = 0,关掉这两项中的任意一项,就不会出现很慢的状况,可是关掉后就不能监听断点就行调试了;
  2. xdebug.remote_host改为127.0.0.1,而不是localhost,phpstorm中的设置也是;
  3. xdebug.remote_port只要是一个可用的端口并和phpstorm中的配置同样就行;
  4. 剩下的配置的,按照配置就好了。

博客apache

相关文章
相关标签/搜索