[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"

 

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

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

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

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

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

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

相关文章:

  • 2021-06-29
  • 2021-04-26
  • 2021-09-02
猜你喜欢
  • 2022-01-04
  • 2022-12-23
  • 2021-05-20
  • 2022-01-29
  • 2021-11-27
  • 2021-11-27
相关资源
相似解决方案