-
-
Notifications
You must be signed in to change notification settings - Fork 7
Home
Bozhidar Zashev edited this page Jun 17, 2025
·
16 revisions
Get Started with WebVella.BlazorTrace!
To start using BlazorTrace you need to do the following simple steps:
- Add the latest version of the WebVella.BlazorTrace Nuget package to your component holding projects directly. It is important to be directly referenced, so the
FodyWeavers.xmlandWvBlazorTraceModule.cscan be generated in the projects root! - Add the following lines in your
Program.csfile.
builder.Services.AddBlazorTrace(
new WvBlazorTraceConfiguration
{
#if !DEBUG
EnableTracing = false
#endif
}
);
#if DEBUG
//Snapshots require bigger hub message size
builder.Services.Configure<HubOptions>(options =>
{
options.MaximumReceiveMessageSize = 10 * 1024 * 1024; // 10MB
});
//To get the message size error if it got bigger than the above
builder.Services.AddSignalR(o =>
{
o.EnableDetailedErrors = true;
});
#endif- In your
_Imports.razorfile add the following lines so all supported components can start being monitored
@using WebVella.BlazorTrace;
@attribute [WvBlazorTrace]- Add the BlazorTrace component at the end of your
App.razororRoutes.razorcomponent (depending on your project type)
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
</Found>
</Router>
<WvBlazorTrace/> @* <-- INSERT HERE *@- Rebuild the solution
- Thats it. You can start reviewing the data. PRO TIP: Use the F1 (show) and Esc (hide) to save time.
Method OnEnter/OnExit call information

Log signals information


Memory detail information

Limit hits

Snapshots

Muted traces
