How do you debug in a client-side Blazor application?

To debug a client-side Blazor app in a browser: Close the all instances in Chrome. Run the Blazor app in Chrome (version 70 or later). Open Win + R and run following command. "%programfiles(x86)%\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 http://localhost:52902/ Now the Blazor app is running. Then hit Shift+Alt+D on Windows or Linux and Shift+Cmd+D on macOS. Reference link: https://docs.microsoft.com/en-us/aspnet/core/blazor/debug?view=aspnetcore-3.1 https://www.hanselman.com/blog/CompilingCToWASMWithMonoAndBlazorThenDebuggingNETSourceWithRemoteDebuggingInChromeDevTools.aspx

How does server-side Blazor work?

Server-side Blazor is executed on the server within an ASP.NET Core application. All UI updates, event handling, and JavaScript calls are handled from server by using a SignalR connection, even a button click will go to server. For more information regarding Blazor client-side and server-side apps, check this link.