phpstorm断点调试 php.ini 文件中 Xdebug 配置

[XDebug]
xdebug.profiler_output_dir="D:phpStudy mpxdebug"
xdebug.trace_output_dir="D:phpStudy mpxdebug" 
zend_extension="D:phpStudyphpphp-7.0.12-ntsextphp_xdebug.dll"  # 要打开xdebug调试

## 下面是需要配置的
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.idekey="PHPSTORM"

但是, 如果提示端口被占用要做多下面这两步操作: 

9000 is busy

1、把这句改为: xdebug.remote_port=9100 ; 换一个端口

2、重新修改PHPSTORM的配置文件,setting => 语言和框架 => PHP => Debug , 改端口成为9100

php

弄好后重启集成环境,打好断点,点击phpstorm右上方绿瓢虫图片就会进入调试!

原文地址:https://www.cnblogs.com/pyspang/p/11055890.html