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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

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