How can I debug a VS Code Problem Matcher
Asked Answered
L

1

7

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.

Litigable answered 29/12, 2019 at 9:35 Comment(0)
W
0

This is an old question, but I found this site super helpful:

https://regex101.com/

It allows you to debug regular expressions. You can put an example line of compiler output and try your matcher against it.

One issue I had to figure out is that the VS Code expression is stored in a JSON file, so it has extra escape characters that should be removed if you're using the regex somewhere else.

Waiwaif answered 3/12, 2021 at 19:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.