PROWAREtech
Blazor: Log to the Console Example
An example of how to log information to the browser's console window for debugging purposes on Blazor WebAssembly (WASM).
Console.WriteLine()
in C# is just like console.log
in JavaScript.
@page "/consoleexample"
@code {
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
Console.WriteLine("Hello, World!");
}
}
Comment