1、下载Xdebug扩展(PHP的扩展)网上一堆
2、下载好配置Xdebug,找到PHP.ini文件 网上一堆(如果你什么都不懂就参考下面代码,再结合百度搜索)
xdebug.idekey = "PHPSTORM"
xdebug.remote_port = 9000
xdebug.remote_host = localhost
;远程开启 1 表示默认远程开启 0 表示关闭
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
;启用性能检测分析
xdebug.profiler_enable = On
;启用代码自动跟踪
xdebug.auto_trace = On
xdebug.profiler_enable_trigger = On
xdebug.profiler_output_name = cachegrind.out.%t.%p
;指定性能分析文件的存放目录
xdebug.profiler_output_dir ="G:/wamp64/tmp"
xdebug.show_local_vars=0
3、配置PHPserver
这里不需要使用路径映射,配置此处的用处是为了方便后面DEBUG的时候方便增加路径,后面会说,你配置的本地域名解析是啥你就配啥!
4、查看客户端的XDEBUG端口配置 (在IDE中叫客户端,PHP叫服务端ÿ