当前位置: 首页 > 后端技术 > PHP

PHPSTORM中xdebug的配置

时间:2023-03-30 06:03:19 PHP

php配置:启用xdebug在php.ini文件的xdebug配置部分添加如下配置选项。主要意思是设置phpstorm调试客户端的地址、端口号和表示法。xdebug.remote_enable=onxdebug.auto_trace=onxdebug.remote_handler=dbgpxdebug.remote_host=localhostxdebug.remote_port=9000xdebug.idekey=PHPSTORM配置完成后,打开phpstorm,设置(setting)php的parser,应该现在可以了看到安装了xdebug扩展,否则检查配置文件。2、调试单个PHP文件调试单个PHP文件需要配置DBgp参数,与xdebug的配置参数一致。如下所示。然后在run>editconfigurations中选择phpscript来调试单个php文件。

最新推荐
猜你喜欢