Visual Studio 代码上的 xdebug 不允许在非 PHP 文件上设置断点

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

嗨 Visual studio 只允许我在 .php 文件上放置 xdebug 断点,但不允许在 .module 文件上放置 xdebug 断点。我需要更改一些配置吗?谢谢你

xdebug breakpoints
1个回答
0
投票

尝试使用

创建本地settings.json

{ “文件.关联”:{ “*.module”:“php” } }

另一个 - 不太好 - 选项是转到设置文件 -> 首选项 -> 设置 -> 调试 ->debug.allowBreakpointsEverywhere 并设置为 true。

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