Debugging blazor applications is a little different from what we’ve been doing for years for debugging the JS files.
Microsoft team announced official preview of Blazor framework recently. I wanted to try the new Blazor framework so I’ve installed VS 2019 preview.
I ran the blazor application by following the setup instructions mentioned on Microsoft docs.
After running the application, I just opened the developer tools in chrome to debug the Counter function that came up with default blazor template. Unfortunately, I couldn’t see any of the counter files.
And I saw the following console message
Debugging hotkey: Shift+Alt+D (when application has focus)
I press that hot key and I have the new tab opened in chrome with the following error message.
Although, there is a resolution mentioned in the above screenshot it will not work.
close all the instances of chrome browser.
Once you close your browser window, make sure you also end the tasks of chrome.exe process from Task Manager.
The following are the google chrome processes which are still alive though you close google chrome.
Once you close all the instances of chrome, run the app again and press Shift + Alt + D
with the focus on application. And here is the debugging window.
That’s it for debugging.
It’s in yourapp.dll
folder in the sources >> Page
folder.
Karthik is a passionate Full Stack developer working primarily on .NET Core, microservices, distributed systems, VUE and JavaScript. He also loves NBA basketball so you might find some NBA examples in his posts and he owns this blog.
In this post, we’ll see how to test gRPC Server applications using different clients. And… Read More
In this post, we'll create a new gRPC project in ASP.NET Core and see what's… Read More
In this blog post, we’ll see how to run dotnet core projects without opening visual… Read More
Programmatically evaluating policies is useful when we want to provide access or hide some data… Read More
We saw how we could set up policy-based authorization in our previous article. In this… Read More
What is policy-based authorization and how to set up policy-based authorization with handlers and policies… Read More
This website uses cookies.