Blazor WASM .net 5 Debug.WriteLine not working

Carl Blanchard 71 Reputation points
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

Developer technologies | .NET | Blazor
{count} votes

Your answer

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