Skip to content

Commit 10d7fd8

Browse files
committed
Improve debug output
1 parent ae2833c commit 10d7fd8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/Formatting.Analyzers.CodeFixes/FormattingVerifier.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ public static void VerifyChangedSpansAreWhitespace(SyntaxNode node, IList<TextCh
1818
{
1919
if (!VerifyTextChange(textChange))
2020
{
21-
Debug.Fail($"Cannot find matching trivia for TextChange {textChange}\r\n\r\n{node}");
21+
Debug.Fail("Cannot find matching trivia for TextChange.\r\n"
22+
+ $"span: {textChange.Span}\r\n"
23+
+ $"new text: {textChange.NewText}\r\n"
24+
+ $"new text length: {textChange.NewText.Length}\r\n"
25+
+ $"node:\r\n{node}");
26+
2227
break;
2328
}
2429
}

0 commit comments

Comments
 (0)