Description
Describe the bug
When using Blazor Webassembly version 5.0.1 and then putting
webBuilder.UseHttpSys(options =>
{
options.Authentication.Schemes =
AuthenticationSchemes.NTLM |
AuthenticationSchemes.Negotiate;
options.Authentication.AllowAnonymous = false;
options.AllowSynchronousIO = true;
});
into program.cs after starting Visual Studio to debug a blazor webassembly no breakpoint is hit anymore.
See also:
https://github.com/bleissem/DebuggingWithAspNetCoreAndHttpSys/blob/main/breakpoint_does_not_get_hit.jpg
To Reproduce
I made a repo to reproduce this issue
https://github.com/bleissem/DebuggingWithAspNetCoreAndHttpSys/
the main branch is the brach that contains UseHttpSys
the worksfine branch ist the one that works fine with breakpoints without using UseHttpSys
You can see the difference between both branches here
Exceptions (if any)
Further technical details
- ASP.NET Core version
- Include the output of
dotnet --info
- The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version
version that is used:
.Net 5.0.1
dotnet --info:
.NET SDK (gemäß "global.json"):
Version: 5.0.101
Commit: d05174dc5a
Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.101\
Host (useful for support):
Version: 5.0.1
Commit: b02e13abab
.NET SDKs installed:
5.0.101 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Version:
16.8.3