php.ini: xdebug配置
;xdebug.collect_vars = On
;xdebug.collect_return = On
;xdebug.collect_params = On
;xdebug.profiler_enable=1
xdebug.remote_enable = On
xdebug.remote_autostart = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9100
xdebug.idekey = PHPSTORM
phpstorm:
添加remote debug

填写server和ide-key
打开设置


本文详细介绍了如何在php.ini中配置Xdebug,包括收集变量、返回值、参数、启用剖析器及远程调试等功能。通过设置xdebug.remote_enable等选项,可以实现与PHPStorm等IDE的远程调试连接。
1182

被折叠的 条评论
为什么被折叠?



