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
-
Ryan D 0 Reputation points
2023-03-17T19:10:22.28+00:00 Our team installed the latest Chrome-beta and let the Blazor WASM app launch that instead and it seems to work again with breakpoints set prior to starting the application.
It's a browser issue more than a VS one. -
Sandra Anderson 46 Reputation points
2023-03-17T23:16:09.1333333+00:00 I'm also experiencing this issue. Hopefully it doesn't take too long for Microsoft to provide a fix - I've already wasted over a day trying to work out why this was happening and searching for a solution.
-
Jack Della 0 Reputation points
2023-03-20T04:27:35.7933333+00:00 I'm having this issue to, I can only run my project when I select 'Start with debugging'