I am able to use breakpoints if I add them after running the project.
Blazor app crashes when debugging after windows secutiry updates
Afert 2023 march 14 updates my app stop debugging. If I start it without debugging it works ok, if I start it debugging it crashes at startup. The error is the following:
Microsoft.WebAssembly.Diagnostics.DevToolsProxy[0] DevToolsProxy::Run: Exception System.AggregateException: One or more errors occurred. (Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')) ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List1.get_Item(Int32 index) at Newtonsoft.Json.Linq.JContainer.GetItem(Int32 index) at Newtonsoft.Json.Linq.JArray.get_Item(Object key) at Microsoft.WebAssembly.Diagnostics.MonoProxy.AcceptEvent(SessionId sessionId, String method, JObject args, CancellationToken token) at Microsoft.WebAssembly.Diagnostics.DevToolsProxy.OnEvent(SessionId sessionId, String method, JObject args, CancellationToken token) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task
1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at Microsoft.WebAssembly.Diagnostics.DevToolsProxy.Run(Uri browserUri, WebSocket ideSocket)
Blazor
15 additional answers
Sort by: Most helpful
-
Jake Rebullo 5 Reputation points
2023-03-17T07:05:26.44+00:00 using Chrome beta solves my problem, but still looking forward to other solution using stable chrome.
-
Pramod Pandav 5 Reputation points
2023-03-17T14:40:31.42+00:00 After updating Visual Studio to version 17.5.2, it's working now. Update it to the latest version.
https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes#17.5.2
-
Marcel Rossi 5 Reputation points
2023-03-17T17:00:40.0633333+00:00 I can confirm. Same here.
Removing all Breakpoints Chrome + Edge are working again.
Just adding a single Breakpoint will revert it to unusable.
I feel a bit back-kicked onto ASP-Times, where Debugging worked only by outputting Variables in between the HTML-Code. I don't know if I should lough or cry...
Salut, Marcel
-
Lufe Barreto 16 Reputation points
2023-03-21T22:15:18.6833333+00:00 Same happening here. Works on Edge, but Chrome crashes