程序员PHP经验分享

phpStrome 设置调试工具XDebug 配置使用

2017-06-08  本文已影响135人  Gundy_

安装xdebug扩展

;是否开启远程调试自动启动
xdebug.remote_autostart = On

;是否开启远程调试
xdebug.remote_enable = On

;允许调试的客户端IP
xdebug.remote_host=localhost

;远程调试的端口(默认9000)
xdebug.remote_port=9000

;调试插件dbgp
xdebug.remote_handler=dbgp

;是否收集变量
xdebug.collect_vars = On

;是否收集返回值
xdebug.collect_return = On

;是否收集参数
xdebug.collect_params = On

;是否开启调试内容
xdebug.profiler_enable=On

xdebug.idekey = PHPSTORM

配置phpstorm

浏览器插件 xdebug helper, 下载好之后点选项, IDE选PHPSTORM

PHPSTORM 点菜单栏的Run>Edit Configurations… 在弹出的窗口中添加一个调试配置

然后就可以在IDE里面打断点进行断点调试了


上一篇 下一篇

猜你喜欢

热点阅读