Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug ASP.NET Core Blazor WebAssembly not working for blazorboilerplate #264

Open
andrusyshynnikita opened this issue Apr 10, 2020 · 10 comments
Labels
help wanted Extra attention is needed

Comments

@andrusyshynnikita
Copy link

I would like to debug the WebAssembly using Visual Studio(https://docs.microsoft.com/en-us/aspnet/core/blazor/debug?view=aspnetcore-3.1), but debugging not working.
I need suggestions.

@GioviQ
Copy link
Collaborator

GioviQ commented Apr 10, 2020

@enkodellc
Copy link
Owner

@GioviQ I actually cannot get it to debug either. @GioviQ are you able to?

-VS 16.6

  • Set a breakpoint in the ReadTodos method in TodoList.razor

@GioviQ
Copy link
Collaborator

GioviQ commented Apr 10, 2020

At the moment I am not using the preview release of VS.

@enkodellc enkodellc added the help wanted Extra attention is needed label Apr 10, 2020
@andrusyshynnikita
Copy link
Author

andrusyshynnikita commented Apr 16, 2020

You need Visual Studio 16.6 preview

Ref.:https://devblogs.microsoft.com/aspnet/blazor-webassembly-3-2-0-preview-3-release-now-available/

I am trying to update my Blazor WebAssembly to 3.2.0 preview 2 and get error

Severity	Code	Description	Project	File	Line	Suppression State
Error		Duplicate base paths '/' for content root paths 'D:\Projects\JobDocs\JD.CommonUI\wwwroot\' and 'D:\Projects\JobDocs\JD.Client\bin\Debug_CSB\netstandard2.1\wwwroot\'. ('D:\Projects\JobDocs\JD.CommonUI\wwwroot\css\bootstrap\bootstrap.min.css', 'D:\Projects\JobDocs\JD.Client\obj\Debug_CSB\netstandard2.1\blazor\linker\BlazorComponentUtilities.dll')	JD.Client	C:\Program Files\dotnet\sdk\3.1.201\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets	195	

Could you help me, please?

@enkodellc
Copy link
Owner

@enkodellc
Copy link
Owner

@andrusyshynnikita Full disclosure I am still having issues with debugging. Someone mentioned use the latest Edge browser. Didn't work for me but might for you. I will post when I can get it working for me.

Check out Dan Roth's response:
https://devblogs.microsoft.com/aspnet/blazor-webassembly-3-2-0-now-available/#comment-2152

@GioviQ
Copy link
Collaborator

GioviQ commented May 22, 2020

Sometimes works, see dotnet/aspnetcore#20427

After upgrade to Visual Studio 16.6 I have to comment inspecturi for Debug_SSB.

@GioviQ
Copy link
Collaborator

GioviQ commented Jun 19, 2020

I am watching Daniel Roth (the Blazor creator) in https://www.youtube.com/watch?v=XoizucRjxgU debugging C# directly in Chrome.

@enkodellc
Copy link
Owner

enkodellc commented Jun 27, 2020

I was able to debug with MS Blazor WebAssembly default template. I am not sure but maybe we cannot debug because our pages are in the CommonUI folder?

-Update: I removed the CommonUI and tried and it still would not debug.. I think I might try a very fresh copy of the Template and start adding BB code to see where it breaks..

@isc30
Copy link

isc30 commented Jul 20, 2020

Debugging doesnt work when DLLs are loaded through AssemblyLoadContext.Load() or AppDomain.Load()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants