dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.2k stars 9.94k forks source link

[Blazor] debugging startup takes 24 seconds while without it loads instantly #49244

Open xperiandri opened 1 year ago

xperiandri commented 1 year ago

Is there an existing issue for this?

Describe the bug

After I set up my enterprise-grade solution, debug startup time increased from 5 seconds which is pretty nice to 24-28 seconds which is not acceptable

Expected Behavior

Debugging startup time takes no more than 10 seconds

Steps To Reproduce

  1. dotnet new -i Bolero.Templates

  2. dotnet new bolero-app -o MyBoleroApp

  3. Add "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", to launchSettings.json as per https://github.com/fsbolero/Bolero/issues/307#issuecomment-1593158277

  4. Run in debug mode and see that app loads in 5 seconds

  5. unpack App.zip and run in debug mode Marketplace.Server

  6. See that it loads very slow!

Exceptions (if any)

No response

.NET Version

7.0.102

Anything else?

Visual Studio 2022 17.7.0 Preview 2.0

rogihee commented 1 year ago

Yes, with me on 17.6.4 it takes up to 12 seconds to download the browserLink: image

Not sure if it's the same issue but it's quite a wait to start every time with the debugger!

xperiandri commented 7 months ago

Looks like it was fixed in 8.0