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.37k stars 9.99k forks source link

Blazor .net 8 new interactive project structure fails to connect to debug adapter #57077

Closed bamdad-b closed 2 months ago

bamdad-b commented 2 months ago

I recently started to play around with new Blazor project structure to see if we can move our front-end projects to .net 8. The problem is, I'm not able to connect to chromium debug adapter. I get the error:

One or more errors occurred. Failed to launch debug adapter. Additional information may be available in the output window.

I want to run my server app which serves a razor page with SSR. The client wasm app then loads and takes over the front-end using builder.RootComponents.Add<ClientApp>("#app");.
In .net 7, visual studio seemed to detect the browser connection and add it to the process list after an item named "N/A", but now I have:
Screenshot of IDE
Here is a reproduceable sample repo: DebugAdapterTest
Some additional info:

Let me know if I can give more information. Thank you.

javiercn commented 2 months ago

@bamdad-b thanks for contacting us.

Your app doesn't seem to be correctly setup. You don't need builder.RootComponents.Add<ClientApp>("#app"); on your client. rendermode=InteractiveWebassembly is the way to render an interactive component from within your App component.

If you create a new Blazor Web template with webassembly interactivity (global) does it let you debug the app?

dotnet-policy-service[bot] commented 2 months ago

Hi @bamdad-b. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

dotnet-policy-service[bot] commented 2 months ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

See our Issue Management Policies for more information.