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)
15 additional answers
Sort by: Most helpful
-
Alex Bulbazavr 20 Reputation points
2023-03-15T18:50:01.7033333+00:00 Downgrading the browser to prev version helps
In my case, I made downgrade Edge from 111 version to 110.
Edge and Chrome are both built on Chromium base, as well as a lot of other browsers, so I guess it's a Chromium issue.
Sure will be fixed soon
-
Matias Arrillaga 30 Reputation points
2023-03-16T12:08:04.0433333+00:00 the problem is generated by the last windows update.
it's cheked
-
Stephen Ehlers 5 Reputation points
2023-03-16T20:32:52.4033333+00:00 Ran into the same error, I did find I had one existing breakpoint so I removed it and now it loads through Chrome.
Its annoying but to work around it for now you can pull up the Breakpoints window in VS by going to Debug --> Windows --> Breakpoints. There is an option to disable/enable all breakpoints so you can turn them off, start your debugging session then turn them back on. Wont help for other startup related issues but if your breakpoint is hit at runtime its a viable temporary work around.
Super not fun, hopefully this is fixed soon.
-
Muhammed Cindioglu 6 Reputation points
2023-03-16T23:17:47.82+00:00 Working fine on Firefox but I can't work with breakpoints.