Visual Studio Code 中的 Xdebug 不允许在非 php 文件中使用断点

问题描述 投票:0回答:1

Visual Studio Code 只允许我在

.php
文件上放置 Xdebug 断点,但不能在
.module
文件上放置 Xdebug 断点。

我需要更改一些配置吗?谢谢你。

visual-studio-code xdebug breakpoints
1个回答
1
投票

尝试使用

 创建本地 
settings.json

{
  "files.associations": {
    "*.module": "php"
  }
}

另一个 - 不太好 - 选项是转到设置“文件 -> 首选项 -> 设置 -> 调试” ->

debug.allowBreakpointsEverywhere
并设置为
true

© www.soinside.com 2019 - 2024. All rights reserved.