配置
[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
參考鏈接
說明
- 設(shè)置
xdebug.remote_enable = 0或者xdebug.remote_autostart = 0,關(guān)掉這兩項中的任意一項,就不會出現(xiàn)很慢的情況,但是關(guān)掉后就不能監(jiān)聽斷點就行調(diào)試了; -
xdebug.remote_host改成127.0.0.1,而不是localhost,phpstorm中的設(shè)置也是; -
xdebug.remote_port只要是一個可用的端口并和phpstorm中的配置一樣就行; - 剩下的配置的,按照配置就行了。