Home  >  Article  >  Development Tools  >  What should I do if accessing local projects becomes very slow after installing Xdebug?

What should I do if accessing local projects becomes very slow after installing Xdebug?

藏色散人
藏色散人forward
2021-10-19 16:40:531501browse

The following tutorial column of phpstorm will introduce to you how to solve the problem of extremely slow access to local projects after installing Xdebug. I hope it will be helpful to friends in need!

Configuration

[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

Instructions

  • Set xdebug.remote_enable = 0 or xdebug.remote_autostart = 0. If you turn off either of these two items, there will be no slowdown, but after turning it off You can debug if you cannot listen to breakpoints;

  • xdebug.remote_host is changed to 127.0.0.1 instead of localhost, the same is true for the settings in phpstorm;

  • ##xdebug.remote_port As long as it is an available port and is the same as the configuration in phpstorm;

  • For the rest of the configuration, just follow the configuration.

The above is the detailed content of What should I do if accessing local projects becomes very slow after installing Xdebug?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete