DEV Community

Rogier van der Hee
Rogier van der Hee

Posted on

6 2

Use browser dev tools with Blazor Hybrid

As the exciting journey begins into creating hybrid mobile apps with MAUI Blazor, we start including our shiny Blazor components into native apps. But how can you use the Browser dev tools?

First, create a new app using the MAUI Blazor App Preview template:
Image description

Now add these lines in your MauiProgram.cs:

#if DEBUG
        builder.Services.AddBlazorWebViewDeveloperTools();
#endif
Enter fullscreen mode Exit fullscreen mode

Next, launch app in the Android emulator:
Image description

OK, now the app is running, now start a Desktop Edge browser and enter edge://inspect/#devices as url:
Image description

After a few seconds a Remove target appears with your app name in it:
Image description

Finally, click inspect to launch the Dev tools for your instance and now you can use all your existing tools like inspect, layout etc!

Image description

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay