question

CarlBlanchard-2319 avatar image
0 Votes"
CarlBlanchard-2319 asked CarlBlanchard-2319 commented

Blazor WASM .net 5 Debug.WriteLine not working

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

dotnet-aspnet-core-blazor
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have created a .net core 3.1 blazor app and Debug.WriteLine works fine along with Console.WriteLine - So it must be something to do with the .net 5 framework

0 Votes 0 ·

Do you face any error message or else inside the console? Besides, I could reproduce this issue, I have already created a github issue for this problem, you could follow that github link.

0 Votes 0 ·

Hi Brando, nope, no error message or anything It just doesn't work. I saw your GitHub post. Hopefully, it gets fixed quickly.

0 Votes 0 ·

0 Answers