声明:本教程适用于Windows平台,需要先安装phpstorm



1. XAMPP下载地址 , 选择自定义的位置安装

2. 先关闭XAMPP
(Windows)在phpstorm 配置php interpreter,搭建php debug环境


3. 配置php.init文件
(Windows)在phpstorm 配置php interpreter,搭建php debug环境
(Windows)在phpstorm 配置php interpreter,搭建php debug环境


4. 重启XAMPP
5. 在cmd中输入,若出现xdebug,说明成功


(Windows)在phpstorm 配置php interpreter,搭建php debug环境

(Windows)在phpstorm 配置php interpreter,搭建php debug环境


6. 在phpstorm内配置php server 和interpreter

(Windows)在phpstorm 配置php interpreter,搭建php debug环境
(Windows)在phpstorm 配置php interpreter,搭建php debug环境
(Windows)在phpstorm 配置php interpreter,搭建php debug环境
(Windows)在phpstorm 配置php interpreter,搭建php debug环境



7. 在chrome中下载插件

(Windows)在phpstorm 配置php interpreter,搭建php debug环境


(Windows)在phpstorm 配置php interpreter,搭建php debug环境


8.XAMPP安装目录下的htdocs文件下添加需要测试的文件

(Windows)在phpstorm 配置php interpreter,搭建php debug环境



9. phpstorm 内打开监听

(Windows)在phpstorm 配置php interpreter,搭建php debug环境

相关文章: