使用的是phpstudy环境包测试php
右键打开找到laravel
打开Xdebug 而后重启phpstudy 我这里关闭了phpstudy 而后在关闭httpd.exe进程才会生效web
查询下Xdebug用PHPinfo浏览器
查看是否开启服务器
【File】【Settings】-【Languages & Frameworks】 - 【Debug】phpstorm
配置一个服务测试
下图 中1的位置填写 phpinfo里xdebug 的ID 这里我没有在php.ini里定义IDE Key因此每次重启web 服务器都会变化。.net
下图2中填写的是默认开启debug port 9000插件
这时候开启phpstorm 的监听debug
3.开启浏览器插件
不一样浏览器用的插件
这里是 Chrome Xdebug Helper 下载地址:https://pan.baidu.com/s/1iwL0ZYR4V9HJc8qobWUhyQ 密码:a99p
phpstorm介绍的浏览器插件
https://confluence.jetbrains.com/display/PhpStorm/Browser+Debugging+Extensions
这是另外一款浏览器插件
crx file of JetBrains IDE Support 2.0.9
连接:https://pan.baidu.com/s/1IZHyxfbVF9NoNLgiPNHycA 密码:nyvl
开启成功后
参考教程
https://blog.csdn.net/qq_33862644/article/details/76677879
https://laravel-china.org/articles/4098/the-first-step-to-becoming-a-senior-php-programmer-debug-xdebug-configuration