Blazor, Debug.WriteLine not outputting to Google Chrome Console

Viewed 587

When my Blazor WASM project was using .net core project 3.1, Debug.WriteLine("test") would output to Chromes console window.

After upgrading everything to .net core 5.0.301 Nothing is output.

I get this error show in the Visual Studio to debug console.

fail: Microsoft.WebAssembly.Diagnostics.DevToolsProxy[0]
      sending error response for id: msg-62E669E5DBE5C53DAF0973BE80FD50E4:::1032 -> [Result: IsOk: False, IsErr: True, Value: , Error: {
        "result": {
          "type": "object",
          "subtype": "error",
          "description": "Cannot find member named 'Debug'.",
          "className": "ReferenceError"
        }
      } ]

Does anyone have any ideas?

0 Answers
Related