Open mkArtakMSFT opened 2 years ago
Hi.
Trying to debug a .NET 6 Blazor WebAssembly project in VS Code on a Mac, but the breakpoints don't bind:
mkdir BlazorClient cd BlazorClient dotnet new blazorwasm --hosted
cd ~/BlazorClient code .
Choose BlazorClient.Server as launch project:
Click ‘Yes’ to load missing assets:
Set breakpoint at the line of 16 ”CurrentCount++” in Client/Pages/Counter.razor file.
Press F5 to start debugging.
Starting OmniSharp server at 9/15/2021, 5:14:39 PM Target: /Users/vstester/BlazorClient/Server OmniSharp server started. Path: /Users/vstester/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/run PID: 6081 [info]: OmniSharp.Stdio.Host Starting OmniSharp on MacOS 10.14.4 (x64) [info]: OmniSharp.Services.DotNetCliService DotNetPath set to dotnet [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator Located 1 MSBuild instance(s) 1: StandAlone 17.0.0 - "/Users/vstester/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild/Current/Bin" [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator MSBUILD_EXE_PATH environment variable set to '/Users/vstester/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild/Current/Bin/MSBuild.exe' [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator Registered MSBuild instance: StandAlone 17.0.0 - "/Users/vstester/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild/Current/Bin" CscToolExe = csc.exe MSBuildToolsPath = /Users/vstester/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild/Current/Bin CscToolPath = /Users/vstester/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild/Current/Bin/Roslyn BypassFrameworkInstallChecks = true MSBuildExtensionsPath = /Users/vstester/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.15/omnisharp/.msbuild [info]: OmniSharp.WorkspaceInitializer Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0 [info]: OmniSharp.WorkspaceInitializer Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0 [info]: OmniSharp.WorkspaceInitializer Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100 [info]: OmniSharp.WorkspaceInitializer Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110 [info]: OmniSharp.WorkspaceInitializer Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140 [info]: OmniSharp.Cake.CakeProjectSystem Detecting Cake files in '/Users/vstester/BlazorClient/Server'. [info]: OmniSharp.Cake.CakeProjectSystem Could not find any Cake files [info]: OmniSharp.MSBuild.ProjectSystem No solution files found in '/Users/vstester/BlazorClient/Server' [info]: OmniSharp.MSBuild.ProjectManager Queue project update for '/Users/vstester/BlazorClient/Server/BlazorClient.Server.csproj' [info]: OmniSharp.Script.ScriptProjectSystem Detecting CSX files in '/Users/vstester/BlazorClient/Server'. [info]: OmniSharp.Script.ScriptProjectSystem Could not find any CSX files [info]: OmniSharp.WorkspaceInitializer Configuration finished. [info]: OmniSharp.Stdio.Host Omnisharp server running using Stdio at location '/Users/vstester/BlazorClient/Server' on host 6053. [info]: OmniSharp.MSBuild.ProjectManager Loading project: /Users/vstester/BlazorClient/Server/BlazorClient.Server.csproj [info]: OmniSharp.MSBuild.ProjectManager Successfully loaded project file '/Users/vstester/BlazorClient/Server/BlazorClient.Server.csproj'. [info]: OmniSharp.MSBuild.ProjectManager Adding project '/Users/vstester/BlazorClient/Server/BlazorClient.Server.csproj' [info]: OmniSharp.MSBuild.ProjectManager Update project: BlazorClient.Server [info]: OmniSharp.MSBuild.ProjectManager Found referenced project outside root directory: /Users/vstester/BlazorClient/Client/BlazorClient.Client.csproj [info]: OmniSharp.MSBuild.ProjectManager Adding project '/Users/vstester/BlazorClient/Client/BlazorClient.Client.csproj' [info]: OmniSharp.MSBuild.ProjectManager Queue project update for '/Users/vstester/BlazorClient/Client/BlazorClient.Client.csproj' [info]: OmniSharp.MSBuild.ProjectManager Found referenced project outside root directory: /Users/vstester/BlazorClient/Shared/BlazorClient.Shared.csproj [info]: OmniSharp.MSBuild.ProjectManager Adding project '/Users/vstester/BlazorClient/Shared/BlazorClient.Shared.csproj' [info]: OmniSharp.MSBuild.ProjectManager Queue project update for '/Users/vstester/BlazorClient/Shared/BlazorClient.Shared.csproj' [info]: OmniSharp.MSBuild.ProjectManager Loading project: /Users/vstester/BlazorClient/Client/BlazorClient.Client.csproj [info]: OmniSharp.OmniSharpWorkspace Miscellaneous file: /Users/vstester/BlazorClient/Client/obj/Debug/net6.0/BlazorClient.Client.GlobalUsings.g.cs added to workspace [info]: OmniSharp.MSBuild.ProjectManager Successfully loaded project file '/Users/vstester/BlazorClient/Client/BlazorClient.Client.csproj'. [info]: OmniSharp.MSBuild.ProjectManager Loading project: /Users/vstester/BlazorClient/Shared/BlazorClient.Shared.csproj [info]: OmniSharp.MSBuild.ProjectManager Queue project update for '/Users/vstester/BlazorClient/Server/BlazorClient.Server.csproj' [info]: OmniSharp.MSBuild.ProjectManager Queue project update for '/Users/vstester/BlazorClient/Client/BlazorClient.Client.csproj' [info]: OmniSharp.MSBuild.ProjectManager Queue project update for '/Users/vstester/BlazorClient/Shared/BlazorClient.Shared.csproj' [info]: OmniSharp.OmniSharpWorkspace Miscellaneous file: /Users/vstester/BlazorClient/Client/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs added to workspace [info]: OmniSharp.OmniSharpWorkspace Miscellaneous file: /Users/vstester/BlazorClient/Client/obj/Debug/net6.0/BlazorClient.Client.AssemblyInfo.cs added to workspace [info]: OmniSharp.MSBuild.ProjectManager Successfully loaded project file '/Users/vstester/BlazorClient/Shared/BlazorClient.Shared.csproj'. [info]: OmniSharp.OmniSharpWorkspace Miscellaneous file: /Users/vstester/BlazorClient/Shared/obj/Debug/net6.0/BlazorClient.Shared.GlobalUsings.g.cs added to workspace [info]: OmniSharp.MSBuild.ProjectManager Loading project: /Users/vstester/BlazorClient/Server/BlazorClient.Server.csproj [info]: OmniSharp.MSBuild.ProjectManager Queue project update for '/Users/vstester/BlazorClient/Server/BlazorClient.Server.csproj' [info]: OmniSharp.MSBuild.ProjectManager Queue project update for '/Users/vstester/BlazorClient/Client/BlazorClient.Client.csproj' [info]: OmniSharp.MSBuild.ProjectManager Queue project update for '/Users/vstester/BlazorClient/Shared/BlazorClient.Shared.csproj' [info]: OmniSharp.OmniSharpWorkspace Miscellaneous file: /Users/vstester/BlazorClient/Shared/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs added to workspace [info]: OmniSharp.OmniSharpWorkspace Miscellaneous file: /Users/vstester/BlazorClient/Shared/obj/Debug/net6.0/BlazorClient.Shared.AssemblyInfo.cs added to workspace [info]: OmniSharp.MSBuild.ProjectManager Successfully loaded project file '/Users/vstester/BlazorClient/Server/BlazorClient.Server.csproj'. [info]: OmniSharp.MSBuild.ProjectManager Update project: BlazorClient.Client [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /usr/local/share/dotnet/sdk/6.0.100-rc.2.21464.10/Sdks/Microsoft.NET.Sdk/analyzers/Microsoft.CodeAnalysis.CSharp.NetAnalyzers.dll [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /usr/local/share/dotnet/sdk/6.0.100-rc.2.21464.10/Sdks/Microsoft.NET.Sdk/analyzers/Microsoft.CodeAnalysis.NetAnalyzers.dll [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /usr/local/share/dotnet/sdk/6.0.100-rc.2.21464.10/Sdks/Microsoft.NET.Sdk/analyzers/ILLink.CodeFixProvider.dll [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /usr/local/share/dotnet/sdk/6.0.100-rc.2.21464.10/Sdks/Microsoft.NET.Sdk/analyzers/ILLink.RoslynAnalyzer.dll [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /Users/vstester/.nuget/packages/microsoft.aspnetcore.components.analyzers/6.0.0-rc.2.21460.4/analyzers/dotnet/cs/Microsoft.AspNetCore.Components.Analyzers.dll [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /Users/vstester/.nuget/packages/microsoft.extensions.logging.abstractions/6.0.0-rc.2.21459.18/analyzers/dotnet/cs/Microsoft.Extensions.Logging.Generators.dll [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /usr/local/share/dotnet/packs/Microsoft.NETCore.App.Ref/6.0.0-rc.2.21460.8/analyzers/dotnet/cs/System.Text.Json.SourceGeneration.dll [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /usr/local/share/dotnet/sdk/6.0.100-rc.2.21464.10/Sdks/Microsoft.NET.Sdk.Razor/source-generators/Microsoft.AspNetCore.Razor.Internal.SourceGenerator.Transport.dll [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /usr/local/share/dotnet/sdk/6.0.100-rc.2.21464.10/Sdks/Microsoft.NET.Sdk.Razor/source-generators/Microsoft.NET.Sdk.Razor.SourceGenerators.dll [info]: OmniSharp.MSBuild.ProjectManager Update project: BlazorClient.Shared [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /usr/local/share/dotnet/sdk/6.0.100-rc.2.21464.10/Sdks/Microsoft.NET.Sdk/analyzers/Microsoft.CodeAnalysis.CSharp.NetAnalyzers.dll [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /usr/local/share/dotnet/sdk/6.0.100-rc.2.21464.10/Sdks/Microsoft.NET.Sdk/analyzers/Microsoft.CodeAnalysis.NetAnalyzers.dll [info]: OmniSharp.OmniSharpWorkspace Adding analyzer reference: /usr/local/share/dotnet/packs/Microsoft.NETCore.App.Ref/6.0.0-rc.2.21460.8/analyzers/dotnet/cs/System.Text.Json.SourceGeneration.dll Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at OmniSharp.Helpers.LocationExtensions+<>c.<GetQuickFix>b__0_2 (Microsoft.CodeAnalysis.Document document) [0x00000] in <6db3ffa1cfcb4026b9a63edbf920d1b5>:0 at System.Linq.Utilities+<>c__DisplayClass2_0`3[TSource,TMiddle,TResult].<CombineSelectors>b__0 (TSource x) [0x00012] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <17e8581c65f940ca8137dd67206f5dbd>:0 at OmniSharp.Helpers.LocationExtensions.GetQuickFix (Microsoft.CodeAnalysis.Location location, OmniSharp.OmniSharpWorkspace workspace) [0x0015d] in <6db3ffa1cfcb4026b9a63edbf920d1b5>:0 at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService+<>c__DisplayClass3_0.<Handle>b__2 (Microsoft.CodeAnalysis.Location l) [0x00000] in <6db3ffa1cfcb4026b9a63edbf920d1b5>:0 at System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00048] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Set`1[TElement].UnionWith (System.Collections.Generic.IEnumerable`1[T] other) [0x00018] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Enumerable+DistinctIterator`1[TSource].FillSet () [0x0000b] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Enumerable+DistinctIterator`1[TSource].ToArray () [0x00000] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x0000a] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.OrderedEnumerable`1+<GetEnumerator>d__3[TElement].MoveNext () [0x0001e] in <17e8581c65f940ca8137dd67206f5dbd>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList (Newtonsoft.Json.JsonWriter writer, System.Collections.IEnumerable values, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x000e1] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x000d6] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x0008d] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x000b2] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x0008d] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x000b2] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00079] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonSerializer.SerializeInternal (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x0023a] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonSerializer.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonConvert.SerializeObjectInternal (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00028] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x00007] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 at OmniSharp.Protocol.Packet.ToString () [0x00000] in <78b47a525d1f477f94ed0289049fe178>:0 at System.IO.TextWriter.WriteLine (System.Object value) [0x00028] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at System.IO.TextWriter+SyncTextWriter.WriteLine (System.Object value) [0x00000] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at (wrapper synchronized) System.IO.TextWriter+SyncTextWriter.WriteLine(object) at OmniSharp.Services.SharedTextWriter.ProcessWriteQueue () [0x0001d] in <78b47a525d1f477f94ed0289049fe178>:0 at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object at OmniSharp.Helpers.LocationExtensions+<>c.<GetQuickFix>b__0_2 (Microsoft.CodeAnalysis.Document document) [0x00000] in <6db3ffa1cfcb4026b9a63edbf920d1b5>:0 at System.Linq.Utilities+<>c__DisplayClass2_0`3[TSource,TMiddle,TResult].<CombineSelectors>b__0 (TSource x) [0x00012] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <17e8581c65f940ca8137dd67206f5dbd>:0 at OmniSharp.Helpers.LocationExtensions.GetQuickFix (Microsoft.CodeAnalysis.Location location, OmniSharp.OmniSharpWorkspace workspace) [0x0015d] in <6db3ffa1cfcb4026b9a63edbf920d1b5>:0 at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService+<>c__DisplayClass3_0.<Handle>b__2 (Microsoft.CodeAnalysis.Location l) [0x00000] in <6db3ffa1cfcb4026b9a63edbf920d1b5>:0 at System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00048] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Set`1[TElement].UnionWith (System.Collections.Generic.IEnumerable`1[T] other) [0x00018] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Enumerable+DistinctIterator`1[TSource].FillSet () [0x0000b] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Enumerable+DistinctIterator`1[TSource].ToArray () [0x00000] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x0000a] in <17e8581c65f940ca8137dd67206f5dbd>:0 at System.Linq.OrderedEnumerable`1+<GetEnumerator>d__3[TElement].MoveNext () [0x0001e] in <17e8581c65f940ca8137dd67206f5dbd>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList (Newtonsoft.Json.JsonWriter writer, System.Collections.IEnumerable values, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x000e1] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x000d6] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x0008d] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x000b2] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x0008d] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x000b2] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00079] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonSerializer.SerializeInternal (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x0023a] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonSerializer.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonConvert.SerializeObjectInternal (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00028] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x00007] in <2676a2da6edc420e890ed28aa4572ee5>:0 at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value) [0x00000] in <2676a2da6edc420e890ed28aa4572ee5>:0 at OmniSharp.Protocol.Packet.ToString () [0x00000] in <78b47a525d1f477f94ed0289049fe178>:0 at System.IO.TextWriter.WriteLine (System.Object value) [0x00028] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at System.IO.TextWriter+SyncTextWriter.WriteLine (System.Object value) [0x00000] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at (wrapper synchronized) System.IO.TextWriter+SyncTextWriter.WriteLine(object) at OmniSharp.Services.SharedTextWriter.ProcessWriteQueue () [0x0001d] in <78b47a525d1f477f94ed0289049fe178>:0 at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0
Hey @filipw, is this a known issue?
@JoeRobich do you happen to know if this is a known issue?
Seems like this may be related https://github.com/dotnet/razor-tooling/issues/5913
Hi.
Trying to debug a .NET 6 Blazor WebAssembly project in VS Code on a Mac, but the breakpoints don't bind:
Repro Steps
Choose BlazorClient.Server as launch project:
Click ‘Yes’ to load missing assets:
Choose BlazorClient.Server as launch project:
Set breakpoint at the line of 16 ”CurrentCount++” in Client/Pages/Counter.razor file.
Press F5 to start debugging.
Results
Error log