2

I'm trying to write a custom problem matcher for VS Code. My matcher matches nothing, even though testing the regular expressions on the output seem to work. I'm not even sure VS Code loads my problem matcher, let alone see which regular expression matches and which isn't.

Is there a way to debug a problem matcher? I'm basically stuck with no way to move forward.

4

1 回答 1

0

这是一个老问题,但我发现这个网站非常有帮助:

https://regex101.com/

它允许您调试正则表达式。您可以放置​​编译器输出的示例行并尝试使用匹配器。

我必须弄清楚的一个问题是 VS Code 表达式存储在 JSON 文件中,因此如果您在其他地方使用正则表达式,它应该删除额外的转义字符。

于 2021-12-03T19:06:17.407 回答