Blazor WASM .net 5 Debug.WriteLine not working

Carl Blanchard 1 Reputation point
2021-06-14T12:35:47.377+00:00

Since .net 5 in my Blazor WASM solution Debug.WriteLine no longer works? why is this?

Console.WriteLine does work but I would prefer to use Debug.WriteLine as it's conditionally omitted from the production compilation.

Is it something I need to configure to get working again?

Regards

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,577 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.