首页 >开发工具 >phpstorm > 正文

遇到安装Xdebug后访问本地项目变得很慢怎么办?

转载2021-10-19 16:40:530198
下面由phpstorm教程栏目给大家介绍如何解决安装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

说明

  • 设置xdebug.remote_enable = 0或者xdebug.remote_autostart = 0,关掉这两项中的任意一项,就不会出现很慢的情况,但是关掉后就不能监听断点就行调试了;

  • xdebug.remote_host改成127.0.0.1,而不是localhost,phpstorm中的设置也是;

  • xdebug.remote_port只要是一个可用的端口并和phpstorm中的配置一样就行;

  • 剩下的配置的,按照配置就行了。

以上就是遇到安装Xdebug后访问本地项目变得很慢怎么办?的详细内容,更多请关注php中文网其它相关文章!

php中文网最新课程二维码

声明:本文转载于:segmentfault,如有侵犯,请联系admin@php.cn删除

  • 相关标签:php xdebug
  • 相关文章

    相关视频


    网友评论

    文明上网理性发言,请遵守 新闻评论服务协议

    我要评论
  • 专题推荐

    推荐视频教程
  • PHP搭建CMS系统实战课程PHP搭建CMS系统实战课程
  • PHP项目实战-EWShop商城系统PHP项目实战-EWShop商城系统
  • thinkphp5.1+uni-app商城开发thinkphp5.1+uni-app商城开发
  • thinkphp5.1+vue-饿了么全栈开发thinkphp5.1+vue-饿了么全栈开发
  • 视频教程分类