Visual Studio Code 只允许我在
.php
文件上放置 Xdebug 断点,但不能在 .module
文件上放置 Xdebug 断点。
我需要更改一些配置吗?谢谢你。
尝试使用
创建本地
settings.json
{
"files.associations": {
"*.module": "php"
}
}
另一个 - 不太好 - 选项是转到设置“文件 -> 首选项 -> 设置 -> 调试” ->
debug.allowBreakpointsEverywhere
并设置为 true
。