You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何避免PhpStorm调试PHP页面时自动打开新编辑器标签页

问题

使用PhpStorm搭配本地Apache2和Xdebug开发,整体运行正常,但调试PHP页面触发断点时,PhpStorm会自动打开该PHP页面代码的新编辑器标签页,如图所示:

PhpStorm调试时出现多个PHP页面副本

请问如何避免这种行为?

解决方法
  • 打开PhpStorm设置(快捷键Ctrl+Alt+S,或菜单栏File > Settings)
  • 进入Build, Execution, Deployment > Debugger > General
  • 取消勾选Open new tab when hitting breakpoint选项
  • 同时检查文件映射:进入Build, Execution, Deployment > Deployment,确保本地项目文件与本地Apache的文件路径映射完全一致,防止PhpStorm误将同一文件判定为不同资源

内容的提问来源于stack exchange,提问作者Trics

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.09 12:03:11