下面由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