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

[XDebug]
xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"
xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug" 
zend_extension="D:\phpStudy\php\php-7.0.12-nts\ext\php_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右上方绿瓢虫图片就会进入调试!

posted @ 2019-06-20 00:14  一粒小米-博客  阅读(1147)  评论(0编辑  收藏  举报