05月12, 2017

phpstorm断点调试

官方给出的步骤

Zero-configuration Web Application Debugging with Xdebug and PhpStorm

1. 首先安装php xdebug扩展

https://xdebug.org/download.php

alt

2. 切换“开始侦听PHP 调试连接 ”按钮(电话按钮)

alt alt

3. 配置服务器

alt

4. 设置断点

alt

5. 在浏览器中启动调试会话

首先安装chrome Xdebug helper插件 alt 点击Debug,刷新浏览器

6. 可以调试代码了

alt

本文链接:https://blog.hijs.cc/post/phpstorm-breakpoint.html

-- EOF --

Comments